-
Notifications
You must be signed in to change notification settings - Fork 47.7k
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
Fail to render input in a separate window on Edge #14342
Comments
We are seeing this issue as well. The issue is still present with This issue seems highly related to #11768, especially since the line that throws the error per my investigation is the first Seemingly the bug in Edge has grown more severe and the above fix is no longer enough... |
Edit: I was confused by the result of
On the other hand, if we redefine const Object = node.ownerDocument.defaultView.Object;
const descriptor = Object.getOwnPropertyDescriptor(
node.constructor.prototype,
valueField,
); |
After a bit more testing, it seems that node.ownerDocument.defaultView.Object.defineProperty(node, valueField, {
configurable: true,
get: function() {
return get.call(this);
},
set: function(value) {
currentValue = '' + value;
set.call(this, value);
},
}); |
I've run into this issue also, are there plans to release a fix for it? |
Facing above issue in my project. could you please let us know in which release the fix will be available ? Below are the versions which I am using in my project: |
Since IE is not supported anymore we should close this. |
Whether IE is supported doesn’t seem relevant since this was a (mislabelled?) Edge issue. However, chances are it went away when Edge became chromium based in 2020. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
On Edge, when to render any components in a separate window, it comes to react-dom error for
<input>
, and JS error like**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
window.open
dose not work well on JSFiddle or CodeSandbox, so put a page link to reproduce the behaviorhttps://haojy.github.io/issues/input-error-in-separate-window.html
What is the expected behavior?
<input>
component should be rendered as expected without errorsWhich versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React: v16.6.3 and V16.3.0
browser:
The text was updated successfully, but these errors were encountered: