-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
[core] Fix various potential issues with multiple windows #22159
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
Conversation
@material-ui/core: parsed: +0.09% , gzip: +0.08% |
@@ -151,7 +151,7 @@ const ButtonBase = React.forwardRef(function ButtonBase(props, ref) { | |||
'stop', | |||
(event) => { | |||
if (focusVisible) { | |||
onBlurVisible(event); | |||
onBlurVisible(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is currently not needed but will be in the future with React 17. onBlurVisible
already has a notice so this shouldn't be changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far. Great suggestions. Though this should be targetted at next
and needs a yarn prettier.
02becc6
to
82d11e3
Compare
Thanks @eps1lon, I have hopefully have addressed your feedback. |
@scottander Great work, thanks! |
In order to maintain compatibility with multiple windows, it is optimal to not use the window or document global in most cases.
I have done some cleanup where I believe the usage of these globals was not correct.
I was hoping that since the scope of these changes was fairly minor that i would encapsulate them in one PR.