Repository navigation
Commit 4f849c6
Fix org-switcher dropdown crash in admin-console header
Found via a live functionality tour of the admin console: the header's
org-switcher menu rendered <DropdownMenuLabel>Switch organization</DropdownMenuLabel>
without wrapping it in <DropdownMenuGroup>, which Base UI's Menu
primitive requires (Menu.GroupLabel must live inside Menu.Group or
Menu.RadioGroup). React's error boundary silently recovered each time,
so the UI still looked fine, but it threw on every render of that menu.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 075b120 commit 4f849c6
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
0 commit comments