Skip to content

Commit 4ea723e

Browse files
authored
Merge pull request #663 from data-driven-forms/pf4-select-loading
fix(pf4): prevent portal menu warping on open
2 parents d4f009a + 0e9fc00 commit 4ea723e

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)