aboutsummaryrefslogtreecommitdiff
path: root/js/src/dropdown.js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2017-04-14 12:05:54 +0200
committerJohann-S <[email protected]>2017-05-14 11:41:19 +0200
commitc21a2b0d92ca78b63bb9ec21ca0fbf9e9206a18e (patch)
treea8f06132f88c6a81eaa9c60dc6847a15086031f0 /js/src/dropdown.js
parent54a8ab40111dacdf50fad22e6f36d2801ba653c9 (diff)
downloadbootstrap-c21a2b0d92ca78b63bb9ec21ca0fbf9e9206a18e.tar.xz
bootstrap-c21a2b0d92ca78b63bb9ec21ca0fbf9e9206a18e.zip
Remove constraints option and check every options
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r--js/src/dropdown.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index a2b5561c2..ad5ee8d9f 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -63,17 +63,13 @@ const Dropdown = (($) => {
}
const Default = {
- animation : true,
- trigger : 'click',
placement : 'bottom',
- offset : '0 0'
+ offset : {}
}
const DefaultType = {
- animation : 'boolean',
- trigger : 'string',
placement : 'string',
- offset : 'string'
+ offset : 'number'
}
@@ -145,8 +141,10 @@ const Dropdown = (($) => {
this._popper = new Popper(this, context._menu, {
placement : context._config.placement,
- offsets : {
- popper : context._config.offset
+ modifiers : {
+ offset : {
+ offset : this.config.offset
+ }
}
})