mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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