mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(explore): filter popover opening after removing a filter (#16024)
This commit is contained in:
committed by
GitHub
parent
c0615c55df
commit
5917407b9c
@@ -41,10 +41,13 @@ export default function Option({
|
||||
canDelete = true,
|
||||
}: OptionProps) {
|
||||
const theme = useTheme();
|
||||
const onClickClose = useCallback(() => clickClose(index), [
|
||||
clickClose,
|
||||
index,
|
||||
]);
|
||||
const onClickClose = useCallback(
|
||||
e => {
|
||||
e.stopPropagation();
|
||||
clickClose(index);
|
||||
},
|
||||
[clickClose, index],
|
||||
);
|
||||
return (
|
||||
<OptionControlContainer data-test="option-label" withCaret={withCaret}>
|
||||
{canDelete && (
|
||||
|
||||
Reference in New Issue
Block a user