mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
@@ -69,11 +69,7 @@ class FocusTrap {
|
||||
const { target } = event
|
||||
const { trapElement } = this._config
|
||||
|
||||
if (
|
||||
target === document ||
|
||||
target === trapElement ||
|
||||
trapElement.contains(target)
|
||||
) {
|
||||
if (target === document || target === trapElement || trapElement.contains(target)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user