Repository navigation
fix: replace deprecated element.ref usages to support react 19 - #35030
Merged
Dmytro Kirpa (dmytrokirpa) merged 6 commits intoAug 19, 2025
Merged
Dmytro Kirpa (dmytrokirpa) merged 6 commits into
Dmytro Kirpa (dmytrokirpa) merged 6 commits into
Conversation
|
Pull request demo site: URL |
📊 Bundle size reportUnchanged fixtures
|
Dmytro Kirpa (dmytrokirpa)
requested a review
from Oleksandr Fediashov (layershifter)
August 15, 2025 08:01
Dmytro Kirpa (dmytrokirpa)
marked this pull request as ready for review
August 15, 2025 08:01
Dmytro Kirpa (dmytrokirpa)
requested review from
a team and
Victor Genaev (mainframev)
as code owners
August 15, 2025 08:01
Oleksandr Fediashov (layershifter)
approved these changes
Aug 15, 2025
Dmytro Kirpa (dmytrokirpa)
force-pushed
the
fix/child-ref-support-react-19
branch
from
August 18, 2025 08:35
c1f6f52 to
be2a04a
Compare
…ementRef.ts Co-authored-by: Oleksandr Fediashov <[email protected]>
Victor Genaev (mainframev)
approved these changes
Aug 19, 2025
Tudor Popa (tudorpopams)
pushed a commit
to tudorpopams/fluentui
that referenced
this pull request
Apr 14, 2026
…soft#35030) Co-authored-by: Oleksandr Fediashov <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Previous Behavior
Accessing
element.refis deprecated: https://react.dev/blog/2024/04/25/react-19-upgrade-guide#deprecated-element-refWe have various places where we work with elements directly and access refs:
fluentui/packages/react-components/react-toast/src/components/ToastTrigger/useToastTrigger.ts
Line 33 in fc5f6f5
fluentui/packages/react-components/react-tooltip/src/components/Tooltip/useTooltip.tsx
Line 263 in fc5f6f5
fluentui/packages/react-components/react-dialog/src/components/DialogTrigger/useDialogTrigger.ts
Line 39 in fc5f6f5
etc
New Behavior
getReactElementRefthat returns element's ref in a backward compatible wayelement?.refwithgetReactElementRef(element)Related Issue(s)