mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-27 01:19:00 +02:00
Merge 768b491639
into e624413e19
This commit is contained in:
commit
cee8d05bcd
@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
|
ClickAwayListener,
|
||||||
type InputBaseComponentProps,
|
type InputBaseComponentProps,
|
||||||
Popover,
|
Popover,
|
||||||
styled,
|
styled,
|
||||||
@ -15,6 +16,14 @@ const StyledPopover = styled(Popover)(({ theme }) => ({
|
|||||||
padding: theme.spacing(2),
|
padding: theme.spacing(2),
|
||||||
width: '250px',
|
width: '250px',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'&.MuiPopover-root': {
|
||||||
|
pointerEvents: 'none',
|
||||||
|
},
|
||||||
|
|
||||||
|
'& .MuiPopover-paper': {
|
||||||
|
pointerEvents: 'all',
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const StyledTextField = styled(TextField)(({ theme }) => ({
|
const StyledTextField = styled(TextField)(({ theme }) => ({
|
||||||
@ -92,6 +101,7 @@ export const AddValuesPopover: FC<AddValuesProps> = ({
|
|||||||
horizontal: 'left',
|
horizontal: 'left',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<ClickAwayListener onClickAway={onClose}>
|
||||||
<form
|
<form
|
||||||
onSubmit={(e) => {
|
onSubmit={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -145,6 +155,7 @@ export const AddValuesPopover: FC<AddValuesProps> = ({
|
|||||||
</InputRow>
|
</InputRow>
|
||||||
<HelpText id={helpTextId}>{helpText}</HelpText>
|
<HelpText id={helpTextId}>{helpText}</HelpText>
|
||||||
</form>
|
</form>
|
||||||
|
</ClickAwayListener>
|
||||||
</StyledPopover>
|
</StyledPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user