-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed nodeRef
prop type for cross-frame elements
#732
Fixed nodeRef
prop type for cross-frame elements
#732
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Andarist
👍 Thank you! This looks good to me. Could you fix ESLint errors to pass the CI?
77bec9b
to
f2d48ac
Compare
@koba04 I think it will pass now - if not I will come back to it some time later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@Andarist Thank you for your fix! |
## [4.4.2](v4.4.1...v4.4.2) (2021-05-29) ### Bug Fixes * `nodeRef` prop type for cross-realm elements ([#732](#732)) ([8710c01](8710c01))
🎉 This PR is included in version 4.4.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Yes! Happy to see this long-standing issue fixed :). As a side note, on MUI, we fixed it by testing prop.nodeType !== 1. |
## [4.4.2](reactjs/react-transition-group@v4.4.1...v4.4.2) (2021-05-29) ### Bug Fixes * `nodeRef` prop type for cross-realm elements ([#732](reactjs/react-transition-group#732)) ([8710c01](reactjs/react-transition-group@8710c01))
## [4.4.2](reactjs/react-transition-group@v4.4.1...v4.4.2) (2021-05-29) ### Bug Fixes * `nodeRef` prop type for cross-realm elements ([#732](reactjs/react-transition-group#732)) ([8710c01](reactjs/react-transition-group@8710c01))
## [4.4.2](reactjs/react-transition-group@v4.4.1...v4.4.2) (2021-05-29) ### Bug Fixes * `nodeRef` prop type for cross-realm elements ([#732](reactjs/react-transition-group#732)) ([8710c01](reactjs/react-transition-group@8710c01))
## [4.4.2](reactjs/react-transition-group@v4.4.1...v4.4.2) (2021-05-29) ### Bug Fixes * `nodeRef` prop type for cross-realm elements ([#732](reactjs/react-transition-group#732)) ([8710c01](reactjs/react-transition-group@8710c01))
Demo of the problem (and the fix if you uncomment it) presented here: https://codesandbox.io/s/naughty-dan-zps3f?file=/src/App.js
Simple
instanceof
checks always fail for cross-realm checks as technically each realm gets its own, pristine, environment which includes all global constructors (such asElement
)