mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 01:11:32 +03:00
fix(web): fix input autofocus (#15028)
applies to tag creation modal, and possibly other places
This commit is contained in:
@@ -63,7 +63,7 @@
|
|||||||
onMount(() => {
|
onMount(() => {
|
||||||
if (autofocus) {
|
if (autofocus) {
|
||||||
tick()
|
tick()
|
||||||
.then(() => input?.focus())
|
.then(() => setTimeout(() => input?.focus(), 0))
|
||||||
.catch((_) => {});
|
.catch((_) => {});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user