Skip to content

Fix element.ref access issue with react 19 #1846

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

stefan-schweiger
Copy link
Contributor

Since React v19 element.ref access is deprecated and will log an error message when done. This small PR fixes this issue in backwards compatible fashion.

https://react.dev/blog/2024/04/25/react-19-upgrade-guide#deprecated-element-ref

Checklist

  • only relevant code is changed (make a diff before you submit the PR)
  • run tests npm run test
  • tests are included
  • commit message and code follows the Developer's Certification of Origin

@adrai adrai merged commit 41919c7 into i18next:master May 22, 2025
8 checks passed
@coveralls
Copy link

Coverage Status

coverage: 95.797%. remained the same
when pulling 5faa992 on stefan-schweiger:react-19
into 19fcf00 on i18next:master.

@adrai
Copy link
Member

adrai commented May 22, 2025

Thank you very much...
it's included in v15.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants