Skip to content

FocusTrapZone: Fix focus and blur callbacks#8404

Merged
JasonGore merged 2 commits intomicrosoft:masterfrom
jspurlin:jspurlin/FTZFocusBlurCallbackFix
Mar 20, 2019
Merged

FocusTrapZone: Fix focus and blur callbacks#8404
JasonGore merged 2 commits intomicrosoft:masterfrom
jspurlin:jspurlin/FTZFocusBlurCallbackFix

Conversation

@jspurlin
Copy link
Contributor

@jspurlin jspurlin commented Mar 20, 2019

  • Include a change request file using $ npm run change

Description of changes

#8216 broke the focus and blur callbacks on FocusTrapZone.

This PR makes sure to call the callbacks, if present in onRootFocus and onRootBlur handlers

Focus areas to test

Verified that the callbacks are being called again

Microsoft Reviewers: Open in CodeFlow

@jspurlin
Copy link
Contributor Author

jspurlin commented Mar 20, 2019

FYI, this is was found because it introduced a regression in the office online ribbon, and it's a blocking issue

@size-auditor
Copy link

size-auditor bot commented Mar 20, 2019

Bundle test Size (minified) Diff from master
Dialog 179.382 kB ExceedsBaseline     70 bytes
Callout 85.878 kB ExceedsBaseline     70 bytes
DatePicker 199.297 kB ExceedsBaseline     70 bytes
FocusTrapZone 27.533 kB ExceedsBaseline     70 bytes
Coachmark 93.547 kB ExceedsBaseline     70 bytes
HoverCard 94.962 kB ExceedsBaseline     70 bytes
Panel 177.926 kB ExceedsBaseline     70 bytes
Modal 75.256 kB ExceedsBaseline     70 bytes
Dropdown 205.262 kB ExceedsBaseline     70 bytes

ExceedsTolerance  Exceeds Tolerance     ExceedsBaseline  Exceeds Baseline     BelowBaseline  Below Baseline     1 kB = 1000 bytes

@JasonGore JasonGore merged commit d0dc6be into microsoft:master Mar 20, 2019
@msft-github-bot
Copy link
Contributor

🎉office-ui-fabric-react@v6.157.3 has been released which incorporates this pull request.:tada:

Handy links:

@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants