-
Notifications
You must be signed in to change notification settings - Fork 65
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
Dialog focus handling #548
Conversation
Codecov Report
@@ Coverage Diff @@
## master #548 +/- ##
==========================================
+ Coverage 97.31% 97.32% +0.01%
==========================================
Files 32 32
Lines 2530 2546 +16
Branches 642 645 +3
==========================================
+ Hits 2462 2478 +16
Misses 9 9
Partials 59 59
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One very minor nit.
src/dialog/index.ts
Outdated
return; | ||
} | ||
|
||
let dialogFocus = this.meta(Focus).get('main'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let
=> const
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, and good catch! Before I split it out, it was checking dialogFocus
twice, and I must've forgotten to change it afterwards. Fixed now!
Type: bug
The following has been addressed in the PR:
Description:
Resolves #537
Modal dialogs trap focus, non-modal dialogs close on blur