简体   繁体   English

mizzao:bootboxjs冻结我的流星应用程序

[英]mizzao:bootboxjs freeze my meteor app

I'm triying tu use bootboxjs in my meteor app. 我正在尝试在流星应用中使用bootboxjs。

This is what I'm doing: 这就是我在做什么:

Template.test.events({
  'click #logo': function(e, t) {
    e.preventDefault();

   bootbox.alert("Hello world!")
  }
});

When I click on "#logo" all my screen become "darker", a bootbox appear with "Hello world!" 当我单击“ #logo”时,我的所有屏幕都变成“较暗”,出现一个带有“ Hello world!”的启动箱。 and OK button but no focus is set. 和确定按钮,但未设置焦点。

When I click on the OK button or outside the bootbox, nothing happens. 当我单击“确定”按钮或在启动箱外部时,什么也没有发生。 My app is frozen. 我的应用程序被冻结。

What I'm doing wrong ? 我做错了什么?

Thx 谢谢

Solved. 解决了。

It was a bootstrap CSS file conflict. 这是一个引导CSS文件冲突。

I had an old version of bootstrap in my project. 我的项目中有一个旧版本的引导程序。

Removing the old css solved this situation. 删除旧的CSS解决了这种情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM