1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-24 04:32:45 +01:00

fix(web): fix input autofocus (#15028)

applies to tag creation modal, and possibly other places
This commit is contained in:
Ionuț Ciocîrlan 2025-01-02 17:02:03 +02:00 committed by GitHub
parent 6e78499fc9
commit 8641ab82e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,7 @@
onMount(() => {
if (autofocus) {
tick()
.then(() => input?.focus())
.then(() => setTimeout(() => input?.focus(), 0))
.catch((_) => {});
}
});