dillon1000/react
Commit
Browse files Remove loose check on non-number controlled inputs. Fix trailing dot issue. (#9584)
* Remove loose check when assigning non-number inputs This commit removes a check I added when working on number input issues where we perform a loose check on an input's value before we assign it. This prevented controlled text inputs from disallowing numeric text entry. I also added a DOM fixture text case. Related issues: https://github.com/facebook/react/issues/9561#issuecomment-298394312 * Use strict equality as a guard before assigning input.value This commit adds back the guard around assigning the value property to an input, however it does it using a strict equals. This prevents validated inputs, like emails and urls from losing the cursor position. It also adds associated test fixtures. * Add copy command after build for interup with surge.sh
Changed paths7 files
First-parent comparisonfixtures/dom/package.json ModifiedA fixtures/dom/src/components/fixtures/text-inputs/InputTestCase.js AddedM fixtures/dom/src/components/fixtures/text-inputs/index.js ModifiedM scripts/fiber/tests-passing.txt ModifiedM src/renderers/dom/fiber/wrappers/ReactDOMFiberInput.js ModifiedM src/renderers/dom/shared/wrappers/__tests__/ReactDOMInput-test.js ModifiedM src/renderers/dom/stack/client/wrappers/ReactDOMInput.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…