dillon1000/react
Commit
Browse files Allow functions to be passed to custom element setters (#23042)
This is part of the new custom element features that were implemented here: https://github.com/facebook/react/commit/24dd07bd269590ee5024b7f0f1906887d256ea86 When a custom element has a setter for a property and passes the `in` heuristic, the value passed to the react property should be assigned directly to the custom element's property, regardless of the type of the value. However, it was discovered that this isn't working with functions. This patch makes it work with functions. Fixes https://github.com/facebook/react/issues/23041
Changed paths2 files
First-parent comparisonpackages/react-dom/src/__tests__/DOMPropertyOperations-test.js ModifiedM packages/react-dom/src/client/DOMPropertyOperations.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…