-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RadioGroup/Radio: TypeError: Cannot read property 'focusVisible' of null #13322
Comments
@AAverin Providing a reproduction would really help. It doesn't have to be a codesandbox, it can be a git repository. |
This is very similar to an error I have after upgrading from 3.2.1 to 3.3.0. component worked well before but now falls on selecting MenuItem from a drop down list with message "TypeError: node is null". The error stack is: manageAriaHidden.js:28 Uncaught TypeError: Cannot read property 'removeAttribute' of null at ariaHidden (manageAriaHidden.js:28) at ModalManager.remove (ModalManager.js:188) at Modal._this.handleClose (Modal.js:145) at Modal.componentDidUpdate (Modal.js:221) at commitLifeCycles (react-dom.development.js:14693) at commitAllLifeCycles (react-dom.development.js:15905) at HTMLUnknownElement.callCallback (react-dom.development.js:145) at Object.invokeGuardedCallbackDev (react-dom.development.js:195) at invokeGuardedCallback (react-dom.development.js:248) at commitRoot (react-dom.development.js:16075) |
@oliviertassinari I will try to replicate on codesandbox |
Same here as @gsbelarus, on a
|
+1 |
I think this is the same problem as in #13341 |
Definitely it's related to #13349 and it is labeled as a bug |
I tried going back a few versions and error doesn't go away, so it's probably unrelated to linked bugs In the log I get at least 8 instances of an error on a relatively simple page, and loading keeps going.
|
I have also tried applying some theme with |
Found out that I get the issue on any kind of Button I use, even regular I suppose it's not a bug and it's just me doing something wrong, so if anybody has any idea what – I would be glad to get any advice =) |
OK, I'm closing for now. |
This was happening to me too. It was because the version of |
i changed my package.json to roll it back to 3.0.0 and everything worked. The errors all went away. "@material-ui/core": "^3.0.0", |
I think this issue is happening because in the source code of ButtonBase line 144: |
Deployed some code to production today, hit this exact issue in prod only with ButtonBase. |
I highly doubt the issue is on Material-UI side, now, there are too many people involved to ignore the problem. This sounds like an issue with Are you guys using the latest version of Material-UI? Do you flatten the npm dependencies?
@zsalzbank Oh great, the theory is confirmed, I'm closing. |
i have |
@maerzhase You should use the latest version of |
FYI: You can add below snippet to package.json to tell yarn to always use fixed version of
|
Expected Behavior
Current Behavior
Exception when using Radio
Steps to Reproduce
Unfortunately, issue only reproduces on my project.
I have tried to replicate my setup here: https://codesandbox.io/s/94z8j4z5my
Context
When copy-pasting RadioButtons sample(https://material-ui.com/demos/selection-controls/) into my project I get an error. I have posted details on Stackoverflow, including the screenshot.
https://stackoverflow.com/questions/52913864/radio-cannot-read-property-focusvisible-of-null
Additionally, I get following warning:
Your Environment
The text was updated successfully, but these errors were encountered: