Skip to content

Commit

Permalink
fix: revert workaround for #7
Browse files Browse the repository at this point in the history
fix #68

If you're using MUI 3, you may see issue #7 happening again.  If so, you'll need to
investigate the issue with the authors of MUI/decide how to work around it yourself.
  • Loading branch information
jedwards1211 committed Jun 30, 2021
1 parent 2621e21 commit c971692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"prop-types": "^15.7.2"
},
"peerDependencies": {
"react": "^15.0.0 || ^16.0.0 || ^17.0.0"
"react": "^15.0.0 || ^16.0.0 || ^17.0.0",
"@material-ui/core": "^4.0.0"
}
}
7 changes: 0 additions & 7 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,6 @@ export function createPopupState({
if (!parentPopupState.isOpen) return
parentPopupState._setChildPopupState(popupState)
}
if (
!disableAutoFocus &&
typeof document === 'object' &&
document.activeElement
) {
document.activeElement.blur()
}

const newState: $Shape<CoreState> = {
isOpen: true,
Expand Down

0 comments on commit c971692

Please sign in to comment.