fix: focus first element inside modal
This commit is contained in:
parent
dd140db13f
commit
08df1d9d44
|
@ -381,6 +381,8 @@ onMounted(() => {
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
content.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')?.focus();
|
||||||
|
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
new ResizeObserver((entries, observer) => {
|
new ResizeObserver((entries, observer) => {
|
||||||
align();
|
align();
|
||||||
|
|
Loading…
Reference in New Issue