dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/dom/client/wrappers/ReactDOMInput.js ModifiedM src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…