Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-09-15 14:34:24 +0300
committerGitHub <noreply@github.com>2021-09-15 14:34:24 +0300
commit8f2e6784241c8ca79ff84a7d8546a8b6b3b458bb (patch)
tree80a457c2608ba5bbe1e4e0b97ee5b0ae144f5830 /js/src/util/focustrap.js
parentc5d03d93fca6288af8d2079d8fb80cd1c606ab52 (diff)
Minor refactoring (#34980)
Rename variables and remove a temporary one
Diffstat (limited to 'js/src/util/focustrap.js')
-rw-r--r--js/src/util/focustrap.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/js/src/util/focustrap.js b/js/src/util/focustrap.js
index f1433c219f..d519422466 100644
--- a/js/src/util/focustrap.js
+++ b/js/src/util/focustrap.js
@@ -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
}