Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,14 @@ describe('ReactDOMSelect', function() {

// Changing the `value` prop should change the selected options.
objectToString.animal = 'monkey';
ReactDOM.render(el, container);

var el2 =
<select multiple={true} value={[objectToString]}>
<option value="monkey">A monkey!</option>
<option value="giraffe">A giraffe!</option>
<option value="gorilla">A gorilla!</option>
</select>;
ReactDOM.render(el2, container);

expect(node.options[0].selected).toBe(true); // monkey
expect(node.options[1].selected).toBe(false); // giraffe
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/shared/reconciler/ReactReconciler.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ var ReactReconciler = {
internalInstance, nextElement, transaction, context
) {
var prevElement = internalInstance._currentElement;

if (nextElement === prevElement &&
nextElement._owner != null &&
context === internalInstance._context
) {
// Since elements are immutable after the owner is rendered,
Expand Down