This repository was archived by the owner on May 13, 2026. It is now read-only.
Commit 3a369cc
committed
[fixed] Error on opening dropdown without focusable items
When dropdown without focusable items (e.g. containing only divs to
display some content) is opened, exception is raised in
`DropdownMenu.focusNext()` method as `items[0]` is not defined.
This commit adds additional check in `focusNext()` method, skipping
focusing altogether if there are no focusable items.1 parent b9384be commit 3a369cc
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
189 | 204 | | |
190 | 205 | | |
191 | 206 | | |
| |||
0 commit comments