diff --git a/components/lib/multiselect/MultiSelect.js b/components/lib/multiselect/MultiSelect.js index ee8135e809..c2d041bdf8 100644 --- a/components/lib/multiselect/MultiSelect.js +++ b/components/lib/multiselect/MultiSelect.js @@ -617,10 +617,10 @@ export const MultiSelect = React.memo( }, [props.overlayVisible]); useUpdateEffect(() => { - if (overlayVisibleState && hasFilter) { + if (overlayVisibleState && filterState && hasFilter) { alignOverlay(); } - }, [overlayVisibleState, hasFilter]); + }, [overlayVisibleState, filterState, hasFilter]); useUnmountEffect(() => { ZIndexUtils.clear(overlayRef.current);