mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #1661 from spicyj/test-ie10-select-multiple
Fix select switching to multiple in IE
This commit is contained in:
@@ -141,9 +141,11 @@ var ReactDOMSelect = ReactCompositeComponent.createClass({
|
||||
updateOptions(this, LinkedValueUtils.getValue(this));
|
||||
},
|
||||
|
||||
componentDidUpdate: function() {
|
||||
componentDidUpdate: function(prevProps) {
|
||||
var value = LinkedValueUtils.getValue(this);
|
||||
if (value != null) {
|
||||
var prevMultiple = !!prevProps.multiple;
|
||||
var multiple = !!this.props.multiple;
|
||||
if (value != null || prevMultiple !== multiple) {
|
||||
updateOptions(this, value);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user