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

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

Projects

None yet

4 participants

@mdo
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 docs js v4 labels Jan 6, 2017
@mdo mdo added this to the v4.0.0-beta milestone Jan 6, 2017
@mdo mdo changed the title from JS error in hosted docs to Tooltip JS error in hosted docs Jan 6, 2017
@Starsam80
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
Member
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 from Tooltip JS error in hosted docs to Tooltip, popover, modal JS error in hosted docs Jan 6, 2017
@vanduynslagerp
Contributor

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

@mdo
Member
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
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