Skip to content

Commit

Permalink
fix: hydration problem caused by
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhua committed Feb 6, 2024
1 parent fcc96df commit 9060177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-select/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ export default class Select<
inputIsHiddenAfterUpdate: undefined,
prevProps: undefined,
instancePrefix: '',
isAppleDevice: false
isAppleDevice: false,
};

// Misc. Instance Properties
Expand Down Expand Up @@ -815,7 +815,7 @@ export default class Select<
) {
scrollIntoView(this.menuListRef, this.focusedOptionRef);
}
if(isAppleDevice()) {
if (isAppleDevice()) {
// eslint-disable-next-line react/no-did-mount-set-state
this.setState({ isAppleDevice: true });
}
Expand Down

0 comments on commit 9060177

Please sign in to comment.