mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
6875fa867f
* 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
24 lines
607 B
JSON
24 lines
607 B
JSON
{
|
|
"name": "react-fixtures",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"devDependencies": {
|
|
"react-scripts": "0.9.5"
|
|
},
|
|
"dependencies": {
|
|
"classnames": "^2.2.5",
|
|
"query-string": "^4.2.3",
|
|
"prop-types": "^15.5.6",
|
|
"react": "^15.4.1",
|
|
"react-dom": "^15.4.1",
|
|
"semver": "^5.3.0"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"prestart": "cp ../../build/dist/{react,react-dom}.development.js public/",
|
|
"build": "react-scripts build && cp build/index.html build/200.html",
|
|
"test": "react-scripts test --env=jsdom",
|
|
"eject": "react-scripts eject"
|
|
}
|
|
}
|