react: Using throws SecurityError in Firefox
Do you want to request a feature or report a bug? Bug.
What is the current behavior?
In development mode Firefox throws exception SecurityError: The operation is insecure.
. It is thrown from postMountWrapper
line node.value = node.value;
.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).
Demo:
render() {
return <input type="file"/>;
}
What is the expected behavior?
No exception.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React? 15.3.1. Not sure how did it behave in previous versions. FF is 48.0.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 17 (6 by maintainers)
Additional information: It happens only if Firefox autofills the form. If I use
<input type="file" autoComplete="off"/>
then I no more get this error.