Skip to content

Commit

Permalink
Fix primefaces#5210: Multiselect align overlay after filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 1, 2023
1 parent 2149601 commit c897818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/multiselect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c897818

Please sign in to comment.