Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popover can't show number as content #20193

Closed
Kirill89 opened this issue Jun 28, 2016 · 5 comments
Closed

Popover can't show number as content #20193

Kirill89 opened this issue Jun 28, 2016 · 5 comments
Labels
Milestone

Comments

@Kirill89
Copy link

If data-content attribute specified as number (like data-content="123456"), will be an error.

Error text: Uncaught Error: TOOLTIP: Option "content" provided type "number" but expected type "(string|function)"..

Demo on jsfiddle.

OS and Browser: Mac OS X, Chrome 51.0.2704.106 (64-bit).

@design8383
Copy link

There are, in if it is the number should be taken to operate. Add space in the back, if you want to use to "123456".

@Kirill89
Copy link
Author

@design8383 your solution works well, but looks like a workaround.

I think it's a bug because data-content attribute can't be anything except string.

@design8383
Copy link

@Kirill89 Your 're right. This bug is not a solution. A simple tip that can only be used.

@mdo
Copy link
Member

mdo commented Dec 26, 2016

Could also be related to #18641?

@mdo mdo added this to the v4.0.0-beta milestone Jan 2, 2017
@pvdlg
Copy link
Contributor

pvdlg commented Jan 10, 2017

I don't think it's related to #18641.
#20210 seems to be the appropriate fix as the problem come from an explicit restriction on the format of the data-content here https://github.com/twbs/bootstrap/pull/20210/files#diff-e9010e9ff0ddb6c88e5442067e24aa1fL37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants