aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2017-03-31 10:03:54 +0200
committerGitHub <[email protected]>2017-03-31 10:03:54 +0200
commit5142de7e592abc0a791ea3465616795c91219bcc (patch)
treee5a890c94467b74957dbd64cf19f8c86e36c47f7 /js/src
parentcb4bc89fdf0286e9b88b6d5be6148b9b53463ff8 (diff)
downloadbootstrap-5142de7e592abc0a791ea3465616795c91219bcc.tar.xz
bootstrap-5142de7e592abc0a791ea3465616795c91219bcc.zip
Popover + Tooltip - fix error when content or title is a number
Diffstat (limited to 'js/src')
-rw-r--r--js/src/tooltip.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 5fd4987b9..1ff2c4f6e 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -605,6 +605,14 @@ const Tooltip = (($) => {
}
}
+ if (config.title && typeof config.title === 'number') {
+ config.title = config.title.toString()
+ }
+
+ if (config.content && typeof config.content === 'number') {
+ config.content = config.content.toString()
+ }
+
Util.typeCheckConfig(
NAME,
config,