fix(editor): 🐛 Settings modal moving block
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user