-
Notifications
You must be signed in to change notification settings - Fork 162
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
feat: Duplicate - Blue dialog contribution #2946
base: main
Are you sure you want to change the base?
Conversation
277560b
to
793d280
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2946 +/- ##
=======================================
Coverage 96.45% 96.45%
=======================================
Files 791 791
Lines 22314 22314
Branches 7601 7670 +69
=======================================
Hits 21523 21523
Misses 739 739
Partials 52 52 ☔ View full report in Codecov by Sentry. |
const dialogRef = useRef<HTMLDivElement>(null); | ||
const triggerRef = useRef<HTMLElement | null>(null); | ||
|
||
useEffect(() => { |
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.
I think it is better to manage the focus transition outside of this component. For instance, you can forward the ref to the dialog's root so that it will be possible to do dialogRef.focus() from the outside code.
Description
Related links, issue #, if available: n/a
How has this been tested?
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.