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:
authorRohit Sharma <rohit2sharma95@gmail.com>2021-02-03 22:37:25 +0300
committerGitHub <noreply@github.com>2021-02-03 22:37:25 +0300
commit217d84d6b25c44ea9791e4ca760a35e46f2e0653 (patch)
tree5d2f0da60cecad1e7eb6c0e9387677e6fa50a5f6 /js/src/dropdown.js
parenta1bb65ef49d1373f224e228e67112a675b390720 (diff)
Remove the initial margin from dropdown/popover in favor of Popper (#32524)
* Remove the margin from dropdown in favor of Popper - Set the default margin to 0 for dropdowns (To remove the Popper's warning) - Set the required offset in dropdown's defaults * Remove the margin from the popover component Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r--js/src/dropdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 66ff8cc4fc..8fdf455801 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -72,7 +72,7 @@ const PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start'
const PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start'
const Default = {
- offset: [0, 0],
+ offset: [0, 2],
flip: true,
boundary: 'clippingParents',
reference: 'toggle',