Fix filter edit popover not opening in DnD mode (#14243)

This commit is contained in:
Kamil Gabryjelski 2021-04-20 11:45:48 +02:00 committed by GitHub
parent d386e66f59
commit 6119d8e998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ export default function OptionWrapper(
clickClose,
withCaret,
children,
...rest
} = props;
const ref = useRef<HTMLDivElement>(null);
@ -105,7 +106,7 @@ export default function OptionWrapper(
drag(drop(ref));
return (
<DragContainer ref={ref}>
<DragContainer ref={ref} {...rest}>
<Option index={index} clickClose={clickClose} withCaret={withCaret}>
{children}
</Option>