mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
set value property explicitly for "option" element even if value is empty
This commit is contained in:
1 parent
f9a08b0e9c
commit
ea15fa31b6
1 file changed
+5
@@ -179,6 +179,11 @@ var DOMPropertyOperations = {
|
||||
// Contrary to `setAttribute`, object properties are properly
|
||||
// `toString`ed by IE8/9.
|
||||
node[propName] = value;
|
||||
} else if (node.nodeName && node.nodeName.toLowerCase() === 'option' &&
|
||||
!node.hasAttribute('value')) {
|
||||
// set empty "value" attribute to OPTION element
|
||||
// if it is provided, but not yet set
|
||||
node[propName] = value;
|
||||
}
|
||||
} else {
|
||||
var attributeName = propertyInfo.attributeName;
|
||||
|
||||
Reference in new issue
Block a user