mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(ui): pause when grid menu is open
This commit is contained in:
committed by
Łukasz Mierzwa
parent
e24009f5be
commit
5841e8547b
@@ -24,6 +24,7 @@ import { NewLabelName, StringToOption, OptionT } from "Common/Select";
|
||||
import { DropdownSlide } from "Components/Animations/DropdownSlide";
|
||||
import { ThemeContext } from "Components/Theme";
|
||||
import { useOnClickOutside } from "Hooks/useOnClickOutside";
|
||||
import { FetchPauser } from "Components/FetchPauser";
|
||||
|
||||
const specialLabels: OptionT[] = [
|
||||
{ label: "Automatic selection", value: "@auto" },
|
||||
@@ -126,23 +127,25 @@ const Dropdown: FC<{
|
||||
onClose,
|
||||
}) => {
|
||||
return (
|
||||
<div
|
||||
className="dropdown-menu d-block shadow components-grid-label-select-menu border-0 p-0 m-0"
|
||||
ref={popperRef}
|
||||
style={{
|
||||
fontSize: "1rem",
|
||||
fontWeight: "normal",
|
||||
...popperStyle,
|
||||
}}
|
||||
data-placement={popperPlacement}
|
||||
>
|
||||
<GridLabelNameSelect
|
||||
alertStore={alertStore}
|
||||
settingsStore={settingsStore}
|
||||
grid={grid}
|
||||
onClose={onClose}
|
||||
/>
|
||||
</div>
|
||||
<FetchPauser alertStore={alertStore}>
|
||||
<div
|
||||
className="dropdown-menu d-block shadow components-grid-label-select-menu border-0 p-0 m-0"
|
||||
ref={popperRef}
|
||||
style={{
|
||||
fontSize: "1rem",
|
||||
fontWeight: "normal",
|
||||
...popperStyle,
|
||||
}}
|
||||
data-placement={popperPlacement}
|
||||
>
|
||||
<GridLabelNameSelect
|
||||
alertStore={alertStore}
|
||||
settingsStore={settingsStore}
|
||||
grid={grid}
|
||||
onClose={onClose}
|
||||
/>
|
||||
</div>
|
||||
</FetchPauser>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user