fix: focus first element inside modal

This commit is contained in:
freeplay 2023-06-24 15:02:54 -04:00
parent dd140db13f
commit 08df1d9d44
1 changed files with 2 additions and 0 deletions

View File

@ -381,6 +381,8 @@ onMounted(() => {
{ immediate: true }
);
content.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')?.focus();
nextTick(() => {
new ResizeObserver((entries, observer) => {
align();