From 357cc47f8a5044be751a709842712ce9abffe4fa Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Thu, 11 Jan 2024 12:07:25 -0500 Subject: [PATCH] prettier --- src/internal/modal.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/internal/modal.ts b/src/internal/modal.ts index 543383c0..c3463d95 100644 --- a/src/internal/modal.ts +++ b/src/internal/modal.ts @@ -137,10 +137,7 @@ export default class Modal { // Check to make sure focus actually changed. It may not always be the next focus, we just don't want it to be the previousFocus. const allActiveElements = [...activeElements()]; - if ( - allActiveElements.includes(this.currentFocus) || - !allActiveElements.includes(this.previousFocus!) - ) { + if (allActiveElements.includes(this.currentFocus) || !allActiveElements.includes(this.previousFocus!)) { break; } }