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

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>