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

Tooltip, popover, modal JS error in hosted docs #21570

Closed
mdo opened this issue Jan 6, 2017 · 5 comments
Closed

Tooltip, popover, modal JS error in hosted docs #21570

mdo opened this issue Jan 6, 2017 · 5 comments

Comments

@mdo
Copy link
Member

mdo commented Jan 6, 2017

TypeError: e(".tooltip-demo").tooltip is not a function. (In 'e(".tooltip-demo").tooltip({selector:'[data-toggle="tooltip"]',container:"body"})', 'e(".tooltip-demo").tooltip' is undefined)

Not present in development...

@mdo mdo added this to the v4.0.0-beta milestone Jan 6, 2017
@mdo mdo changed the title JS error in hosted docs Tooltip JS error in hosted docs Jan 6, 2017
@Starsam80
Copy link
Contributor

Looks like we aren't importing all of the JS needed. Can you try rebuilding the docs on a clean checkout from git? Here is what the currently hosted docs have for scripts:
image
And this is my locally built one:
image

@mdo
Copy link
Member Author

mdo commented Jan 6, 2017

All the JS is in that docs.min.js bundle. For now I'm going to push a change to the docs to not use that version until I can figure out what's up with the concatenated and minified bundle.

@mdo mdo changed the title Tooltip JS error in hosted docs Tooltip, popover, modal JS error in hosted docs Jan 6, 2017
@pvdlg
Copy link
Contributor

pvdlg commented Jan 6, 2017

Surprisingly enough everything works fine for me here: https://v4-alpha.getbootstrap.com/components/popovers/

@mdo
Copy link
Member Author

mdo commented Jan 6, 2017

I pushed up an update to use the non-minified JS right after my earlier comment. It works now, but I still need to look into why the minimized didn't.

@bardiharborow
Copy link
Member

I'm betting #21414 caused this.

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

No branches or pull requests

4 participants