Commit 5ddc39c
committed
fix(overlays): only retarget focus to a focusable dialog wrapper
present() queried the overlay for `[role="dialog"]`, but picker-legacy
puts that role on a wrapper with no tabindex. Focusing a non-focusable
element is a no-op, so focus would not move into the picker (a
regression from focusing the host). Qualify the query with `[tabindex]`
so only a focusable dialog wrapper (e.g. the modal wrapper) is targeted;
otherwise fall back to the host, preserving prior behavior.1 parent b0b5256 commit 5ddc39c
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
601 | 604 | | |
602 | | - | |
| 605 | + | |
603 | 606 | | |
604 | 607 | | |
605 | 608 | | |
| |||
0 commit comments