diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-09-15 14:34:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 14:34:24 +0300 |
commit | 8f2e6784241c8ca79ff84a7d8546a8b6b3b458bb (patch) | |
tree | 80a457c2608ba5bbe1e4e0b97ee5b0ae144f5830 /js/src/util/focustrap.js | |
parent | c5d03d93fca6288af8d2079d8fb80cd1c606ab52 (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.js | 6 |
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 } |