Update src/internal/modal.ts

Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
This commit is contained in:
Konnor Rogers
2023-08-23 11:19:20 -04:00
committed by GitHub
parent 28facf9551
commit c8f9482b9c

View File

@@ -58,7 +58,7 @@ export default class Modal {
/**
* Checks if the `startElement` is already focused. This is important if the modal already
* has an existing focused prior to the first tab key.
* has an existing focus prior to the first tab key.
*/
startElementAlreadyFocused(startElement: HTMLElement) {
for (const activeElement of activeElements()) {