dillon1000/react
Commit
Browse files Set input .type before .value always
In IE11 (and below), if you run
```
var input = document.createElement('input');
input.value = 'wat';
input.type = 'radio';
console.log(input.value);
```
you get the string "on" logged. Because that makes sense.
So we set the type first.Changed paths2 files
First-parent comparisonsrc/renderers/dom/client/wrappers/ReactDOMInput.js ModifiedM src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…