-
Notifications
You must be signed in to change notification settings - Fork 62
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
R19 support #1343
Comments
@timfishercs Thanks for asking. This library's use of I've been casually working on R19 support and, having reviewed all the upcoming changes, the only thing that really needs to be done is strip-out the The one thing I will do, however, as part of "supporting" R19 is cut a new major where I'll set the minimum supported version of React to So for all intents and purposes, focus-trap-react should already be ready for R19 -- unless you're seeing something I'm not? |
@stefcameron My apologies, there were sub packages using the older version. All the tests pass so I presume everything is ok, will verify. Nice work keeping it up to date! |
Cool! Thanks for adding your resolution and closing the issue. 😀 |
Hey @stefcameron, I am getting an error related to R19 (not a breaking error currently): Is this also something you are looking at? |
…-19 way `child.ref` is deprecated, and generates a warning in the console in R19 because refs are now first-class props. Check the React version at runtime and if `>=19`, access it via the props; otherwise, keep accessing it as before (a property of the child React element object).
…-19 way `child.ref` is deprecated, and generates a warning in the console in R19 because refs are now first-class props. Check the React version at runtime and if `>=19`, access it via the props; otherwise, keep accessing it as before (a property of the child React element object).
…-19 way `child.ref` is deprecated, and generates a warning in the console in R19 because refs are now first-class props. Check the React version at runtime and if `>=19`, access it via the props; otherwise, keep accessing it as before (a property of the child React element object).
@VercammenJens Thank you for pointing this out! It wasn't on my radar, but I've got it fixed in #1416 😄 |
@all-contributors add @VercammenJens for bug |
I've put up a pull request to add @VercammenJens! 🎉 |
…-19 way `child.ref` is deprecated, and generates a warning in the console in R19 because refs are now first-class props. Check the React version at runtime and if `>=19`, access it via the props; otherwise, keep accessing it as before (a property of the child React element object).
…1416) [#1343] Fix React 19 deprecation warning when accessing child ref pre-19 way `child.ref` is deprecated, and generates a warning in the console in R19 because refs are now first-class props. Check the React version at runtime and if `>=19`, access it via the props; otherwise, keep accessing it as before (a property of the child React element object).
Description
R19 doesn't support
findDOMNode
, is there any plans to remove references to it?Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node at FocusTrap (/.node_modules/focus-trap-react/dist/focus-trap-react.js:47:5)
Versions
Sandbox
Minimal reproduction in something like CodeSandbox:
focus-trap-react
which tries to just be a wrapper for the real library.focus-trap-react
as the culprit.Screen Capture
Recording or screenshot of what you're seeing -- if the repro isn't sufficient to explain it.
The text was updated successfully, but these errors were encountered: