2
0

fix(editor): 🐛 Settings modal moving block

This commit is contained in:
Baptiste Arnaud
2022-02-19 11:30:29 +01:00
parent 341cd15e0b
commit 3456e5af82

View File

@@ -20,10 +20,13 @@ export const SettingsModal = ({
onClose, onClose,
...props ...props
}: Props & ModalBodyProps) => { }: Props & ModalBodyProps) => {
const handleMouseDown = (e: React.MouseEvent) => {
e.stopPropagation()
}
return ( return (
<Modal isOpen={isOpen} onClose={onClose}> <Modal isOpen={isOpen} onClose={onClose}>
<ModalOverlay /> <ModalOverlay />
<ModalContent> <ModalContent onMouseDown={handleMouseDown}>
<ModalHeader mb="2"> <ModalHeader mb="2">
<ModalCloseButton /> <ModalCloseButton />
</ModalHeader> </ModalHeader>