We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef2090e commit 5741fe6Copy full SHA for 5741fe6
packages/react-select/src/Select.js
@@ -611,7 +611,7 @@ export default class Select extends Component<Props, State> {
611
this.focusedOptionRef &&
612
this.scrollToFocusedOptionOnUpdate
613
) {
614
- scrollIntoView(this.menuListRef, this.focusedOptionRef);
+ setTimeout(() => scrollIntoView(this.menuListRef, this.focusedOptionRef), 0);
615
this.scrollToFocusedOptionOnUpdate = false;
616
}
617
0 commit comments