-
Notifications
You must be signed in to change notification settings - Fork 47.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
priorFocusedElem.focus()
throws in IE11
#12763
Comments
Can you put together a reproduction demonstrating the issue? |
In the meantime please feel free to send a PR adding try-catch with an explanation comment |
I hava a same problem. React 16.4 |
@ThaddeusJiang That doesn't help us in any way. It will help us if you provide a reproducing case. Thanks. |
Can somebody with IE11 figure out if:
|
Sorry, I forgot about this because my workaround solved it for me. I will make a PR and try to figure out if it applies to other classes as well |
Thanks! |
when user drags a Element, 'focus' is not supported Exception be thrown Environment
|
OK. Somebody want to send a PR that reverts #11800? |
Yes, I do. |
Fixed in #12996 |
Fixed in React 16.4.1. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
We have an
onClick
handler on an SVG element. The handler sets a state property that causes the element to be hidden (via CSS). This makes IE11 throw on this line:react/packages/react-dom/src/client/ReactInputSelection.js
Line 72 in 52eb59d
It seems that #11800 removed a try/catch protection for this.
I am working around the problem by stubbing focus like this:
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Worked in 16.2.2
The text was updated successfully, but these errors were encountered: