aboutsummaryrefslogtreecommitdiff
path: root/js/src/tooltip.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r--js/src/tooltip.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 2c22a7ed4..5f5e3d7bc 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -47,8 +47,7 @@ const Tooltip = (($) => {
html : false,
selector : false,
placement : 'top',
- offset : '0 0',
- constraints : [],
+ offset : {},
container : false
}
@@ -61,8 +60,7 @@ const Tooltip = (($) => {
html : 'boolean',
selector : '(string|boolean)',
placement : '(string|function)',
- offset : 'string',
- constraints : 'array',
+ offset : 'number',
container : '(string|element|boolean)'
}
@@ -285,8 +283,10 @@ const Tooltip = (($) => {
this._popper = new Popper(this.element, tip, {
placement : attachment,
- offsets : {
- popper : this.config.offset
+ modifiers : {
+ offset : {
+ offset : this.config.offset
+ }
}
})