Skip to content

Commit

Permalink
fix: prevent scroll behavior when focus trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Sep 4, 2020
1 parent cd3a8ec commit ce98249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dialog.tsx
Expand Up @@ -161,7 +161,7 @@ export default class Dialog extends React.Component<IDialogChildProps, any> {
}
if (mask && this.lastOutSideFocusNode && focusTriggerAfterClose) {
try {
this.lastOutSideFocusNode.focus();
this.lastOutSideFocusNode.focus({ preventScroll: true });
} catch (e) {
this.lastOutSideFocusNode = null;
}
Expand Down

0 comments on commit ce98249

Please sign in to comment.