1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 13:29:06 +02:00

Popover + Tooltip - fix error when content or title is a number

This commit is contained in:
Johann-S
2017-03-31 10:03:54 +02:00
committed by GitHub
parent cb4bc89fdf
commit 5142de7e59
3 changed files with 42 additions and 0 deletions

View File

@@ -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,