chore: lint files
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -5,8 +5,11 @@ export function hasSelector(target: Element, selector: string, node: Element): b
|
||||
let current = target
|
||||
|
||||
do {
|
||||
if (current && current.matches(selector)) return true
|
||||
else if (current === node) return false
|
||||
if (current && current.matches(selector)) {
|
||||
return true
|
||||
} else if (current === node) {
|
||||
return false
|
||||
}
|
||||
|
||||
current = current.parentElement as Element
|
||||
} while (current)
|
||||
|
||||
Reference in New Issue
Block a user