-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix(Provider): attach provider element during render #13001
Merged
Merged
Conversation
This file contains 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
layershifter
added
the
Fluent UI react-northstar (v0)
Work related to Fluent UI V0
label
May 5, 2020
layershifter
requested review from
dvdzkwsk,
dzearing,
jurokapsiar,
levithomason,
miroslavstastny,
mnajdova and
pompomon
as code owners
May 5, 2020 14:51
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Potential regressions comparing to master
Perf comparison
Perf tests with no regressions
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: ca1c8da58be3b2a3dd4443d2c5cfc32b044c5015 (build) |
silviuaavram
approved these changes
May 6, 2020
packages/fluentui/react-northstar/test/specs/components/Provider/Provider-test.tsx
Outdated
Show resolved
Hide resolved
…thub.com/microsoft/fluentui into fix/portal-node-insertion � Conflicts: � packages/fluentui/CHANGELOG.md
pompomon
approved these changes
May 7, 2020
8 tasks
miroslavstastny
pushed a commit
that referenced
this pull request
May 13, 2020
* fix(Provider): attach provider element during render * add changelog entry * use jest-dom assertions (cherry picked from commit 74a66ff)
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.
Pull request checklist
Description of changes
This PR fixes a bug related to changes in It's related to changes in: microsoft/fluent-ui-react#2192.
We use
React.useLayoutEffect
to insert a DOM node inuseProviderBox
wherePortalInner
children will be mounted (used inDialog
,Popup
, etc.) and this effect occurs later than children effects as React executes inner effects first.A great example is the check in
FocusTrapZone
:fluentui/packages/fluentui/react-bindings/src/FocusZone/FocusTrapZone.tsx
Lines 417 to 423 in 9da44e3
Microsoft Reviewers: Open in CodeFlow