Skip to content

Commit c971692

Browse files
committed
fix: revert workaround for #7
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.
1 parent 2621e21 commit c971692

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
"prop-types": "^15.7.2"
154154
},
155155
"peerDependencies": {
156-
"react": "^15.0.0 || ^16.0.0 || ^17.0.0"
156+
"react": "^15.0.0 || ^16.0.0 || ^17.0.0",
157+
"@material-ui/core": "^4.0.0"
157158
}
158159
}

src/core.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,6 @@ export function createPopupState({
118118
if (!parentPopupState.isOpen) return
119119
parentPopupState._setChildPopupState(popupState)
120120
}
121-
if (
122-
!disableAutoFocus &&
123-
typeof document === 'object' &&
124-
document.activeElement
125-
) {
126-
document.activeElement.blur()
127-
}
128121

129122
const newState: $Shape<CoreState> = {
130123
isOpen: true,

0 commit comments

Comments
 (0)