diff options
| author | Johann-S <[email protected]> | 2017-03-31 10:03:54 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-03-31 10:03:54 +0200 |
| commit | 5142de7e592abc0a791ea3465616795c91219bcc (patch) | |
| tree | e5a890c94467b74957dbd64cf19f8c86e36c47f7 /js/src | |
| parent | cb4bc89fdf0286e9b88b6d5be6148b9b53463ff8 (diff) | |
| download | bootstrap-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.js | 8 |
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, |
