mirror of
https://github.com/immich-app/immich.git
synced 2025-03-04 02:11:44 -05:00
fix(web): fix input autofocus (#15028)
applies to tag creation modal, and possibly other places
This commit is contained in:
parent
6e78499fc9
commit
8641ab82e1
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
if (autofocus) {
|
if (autofocus) {
|
||||||
tick()
|
tick()
|
||||||
.then(() => input?.focus())
|
.then(() => setTimeout(() => input?.focus(), 0))
|
||||||
.catch((_) => {});
|
.catch((_) => {});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue