mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 02:59:13 +00:00
prettier
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user