mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
fix: focus first element inside modal
This commit is contained in:
parent
1e152fb49e
commit
92285464de
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue