Skip to content

Commit 0e9fc00

Browse files
committed
fix(pf4): prevent portal menu warping on open
1 parent e28a652 commit 0e9fc00

File tree

1 file changed

+1
-0
lines changed
  • packages/pf4-component-mapper/src/common/select

1 file changed

+1
-0
lines changed

packages/pf4-component-mapper/src/common/select/select.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ const stateReducer = (state, changes, isMulti) => {
8585
return {
8686
...state,
8787
...changes,
88+
highlightedIndex: undefined, // reset the item focus to prevent initial scroll and portal menu warping
8889
inputValue: undefined
8990
};
9091
case Downshift.stateChangeTypes.keyDownEnter:

0 commit comments

Comments
 (0)