Skip to content

Commit

Permalink
Migrate over rules for DOM Fiber. Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Nov 20, 2016
1 parent 2c405dd commit 96b72d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions scripts/fiber/tests-passing-except-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ src/renderers/dom/shared/__tests__/CSSPropertyOperations-test.js
* should warn about style containing a NaN value

src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js
* should warn for unknown prop
* should group multiple unknown prop warnings together
* should warn for onDblClick prop
* should emit a warning once for a named custom component using shady DOM
* should not warn when server-side rendering `onScroll`
Expand Down
8 changes: 2 additions & 6 deletions src/renderers/dom/fiber/ReactDOMFiberComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ function updateDOMProperties(
domElement,
propKey
);
} else if (
DOMProperty.properties[propKey] ||
DOMProperty.isCustomAttribute(propKey)) {
} else {
DOMPropertyOperations.deleteValueForProperty(domElement, propKey);
}
}
Expand Down Expand Up @@ -420,9 +418,7 @@ function updateDOMProperties(
propKey,
nextProp
);
} else if (
DOMProperty.properties[propKey] ||
DOMProperty.isCustomAttribute(propKey)) {
} else {
// If we're updating to null or undefined, we should remove the property
// from the DOM node instead of inadvertently setting to a string. This
// brings us in line with the same behavior we have on initial render.
Expand Down

0 comments on commit 96b72d0

Please sign in to comment.