diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-02-16 11:14:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 11:14:05 +0300 |
commit | 92434fa30f38178ba6fd8f3a7d66828eec0783e0 (patch) | |
tree | aa15308033b6f15dbb095f5445022c9c599e4910 /js/src/dropdown.js | |
parent | 3602828a9001298fcfb6638041fc300f9e677bcb (diff) |
util: change `isRTL` to a function (#32446)
This allows the bundler to tree-shake the function.
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r-- | js/src/dropdown.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 97c0f50520..590c748012 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -64,12 +64,12 @@ const SELECTOR_MENU = '.dropdown-menu' const SELECTOR_NAVBAR_NAV = '.navbar-nav' const SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)' -const PLACEMENT_TOP = isRTL ? 'top-end' : 'top-start' -const PLACEMENT_TOPEND = isRTL ? 'top-start' : 'top-end' -const PLACEMENT_BOTTOM = isRTL ? 'bottom-end' : 'bottom-start' -const PLACEMENT_BOTTOMEND = isRTL ? 'bottom-start' : 'bottom-end' -const PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start' -const PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start' +const PLACEMENT_TOP = isRTL() ? 'top-end' : 'top-start' +const PLACEMENT_TOPEND = isRTL() ? 'top-start' : 'top-end' +const PLACEMENT_BOTTOM = isRTL() ? 'bottom-end' : 'bottom-start' +const PLACEMENT_BOTTOMEND = isRTL() ? 'bottom-start' : 'bottom-end' +const PLACEMENT_RIGHT = isRTL() ? 'left-start' : 'right-start' +const PLACEMENT_LEFT = isRTL() ? 'right-start' : 'left-start' const Default = { offset: [0, 2], |