Commit aacbaad
[docs] Correct what goes inert while a popup animates out
The new handbook section left Popover out of the list of components that become
inert and then placed it in the sentence describing the ones that do not, so it
told readers the opposite of what ships. A hover-opened Popover runs a focus
manager of its own now and hands focus back at close like every other session,
which is exactly what makes inerting it safe.
Also states two things the section implied but did not say: `inert` is not a
style, so unlike the `pointer-events: none` it replaces a descendant cannot opt
back in; and it is a backdrop you render yourself that keeps absorbing a click
during the exit animation, not the internal one a modal popup adds, which goes
inert with the rest.
The Combobox page documented what happens to focus that was already in an
external input, but not the case the default now covers: a control inside the
popup that held focus when it closed hands focus back to the input.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 234bad7 commit aacbaad
3 files changed
Lines changed: 9 additions & 5 deletions
File tree
- docs/src/app/(docs)/react
- components/combobox
- handbook/animation
- packages/react/src/popover/popup
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
602 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
603 | 604 | | |
604 | 605 | | |
| 606 | + | |
605 | 607 | | |
606 | 608 | | |
607 | 609 | | |
| |||
0 commit comments