kopia lustrzana https://github.com/shoelace-style/shoelace
prettier
rodzic
9c2cde25a0
commit
048052b2ea
|
@ -87,7 +87,7 @@ export default class Modal {
|
||||||
|
|
||||||
if (currentFocusIndex === -1) {
|
if (currentFocusIndex === -1) {
|
||||||
this.currentFocus = tabbableElements[0];
|
this.currentFocus = tabbableElements[0];
|
||||||
this.currentFocus.focus({ preventScroll: true });
|
this.currentFocus?.focus({ preventScroll: true });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue