react/fixtures
Nathan Hunzaker fd69c239a0 Use defaultValue instead of setAttribute('value') (#11534)
* Use defaultValue instead of setAttribute('value')

This commit replaces the method of synchronizing an input's value
attribute from using setAttribute to assigning defaultValue. This has
several benefits:

- Fixes issue where IE10+ and Edge password icon disappears (#7328)
- Fixes issue where toggling input types hides display value on dates
  in Safari (unreported)
- Removes mutationMethod behaviors from DOMPropertyOperations

* initialValue in Input wrapperState is always a string

* The value property is assigned before the value attribute. Fix related tests.

* Remove initial value tests in ReactDOMInput

I added these tests after removing the `value` mutation
method. However they do not add any additional value over existing
tests.

* Improve clarity of value checks in ReactDOMInput.postMountWrapper

* Remove value and defaultValue from InputWithWrapperState type

They are already included in the type definition for HTMLInputElement

* Inline stringification of value in ReactDOMInput

Avoids eagier stringification and makes usage more consistent.

* Use consistent value/defaultValue presence in postMountHook

Other methods in ReactDOMInput check for null instead of
hasOwnProperty.

* Add missing semicolon

* Remove unused value argument in ReactDOMInput test

* Address cases where a value switches to undefined

When a controlled input value switches to undefined, it reverts back
to the initial state of the controlled input.

We didn't have test coverage for this case, so I've added two describe
blocks to cover both null and undefined.
2017-11-30 21:24:55 +00:00
..
art Update prettier to 1.8.1 (#10785) 2017-11-07 18:09:33 +00:00
attribute-behavior Update prettier to 1.8.1 (#10785) 2017-11-07 18:09:33 +00:00
dom Use defaultValue instead of setAttribute('value') (#11534) 2017-11-30 21:24:55 +00:00
expiration Use requestIdleCallback timeout to force expiration (#11548) 2017-11-15 13:46:17 -08:00
fiber-debugger Update prettier to 1.8.1 (#10785) 2017-11-07 18:09:33 +00:00
fiber-triangle Expiration times (#10426) 2017-10-09 18:39:53 -07:00
packaging Use Yarn Workspaces (#11252) 2017-10-19 00:22:21 +01:00
ssr Update prettier to 1.8.1 (#10785) 2017-11-07 18:09:33 +00:00