feat: always center selected item in selection dialogs (resolves #10209) (#10207)

pull/10291/head
Ariane Emory 2026-01-23 12:59:39 -05:00 committed by GitHub
parent 8105f186dc
commit 225b72ca36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) {
let next = store.selected + direction
if (next < 0) next = flat().length - 1
if (next >= flat().length) next = 0
moveTo(next)
moveTo(next, true)
}
function moveTo(next: number, center = false) {