Just got it, I added show
class to the div
and it works
<div class="modal show">
Question
I'm playing a bit with Parties and the thing is I can't get "create party" and "invite" modals to work on bootstrap-3.
The mask (light gray background that hover the page) get launched but no modals appears.
I used: mrt add bootstrap-3
to add bootstrap (and deleted the default bootstrap version)
Solution 2
Just got it, I added show
class to the div
and it works
<div class="modal show">
OTHER TIPS
You may want to also check out the https://github.com/TimHeckel/meteor-bootboxjs package which (as of now) uses Bootbox 4.2.0 with Bootstrap 3.
It's not Meteor-esque, but it is a nice package for displaying modals that is extensively tested, and you can also insert reactive content into it (if not using the default alert
, confirm
, or prompt
) by using a bit of a hack:
var fooDialog = bootbox.dialog(message: " ").html('');
UI.insert(UI.render(Template.bar), fooDialog[0]);