[英]Boostrap dropdown events not working with bootstrap-ui
According to http://getbootstrap.com/javascript/#dropdowns events (eg, show.bs.dropdown, hide.bs.dropdown) are thrown when a drowdown is opened/closed. 根据http://getbootstrap.com/javascript/#dropdowns事件(例如,show.bs.dropdown,hide.bs.dropdown)在打开/关闭drowdown时抛出。 This works until module bootstrap-ui is active.
这有效直到模块bootstrap-ui处于活动状态。 I created a plunkr that shows the issue http://plnkr.co/edit/luYpweQZx22IkWHeMKhM .
我创建了一个显示问题http://plnkr.co/edit/luYpweQZx22IkWHeMKhM的plunkr。 The events are thrown when the dependency to ui.boostrap is removed, that is
当删除对ui.boostrap的依赖时,抛出事件,即
var app = angular.module('myapp', ['ui.bootstrap']);
is replaced with 被替换为
var app = angular.module('myapp', []);
Versions are: Bootstrap 3.0.3, Angular 1.2.4 (also tested with 1.2.13), Angular UI Bootstrap 0.10.0, JQuery 2.0.3 版本是:Bootstrap 3.0.3,Angular 1.2.4(也用1.2.13测试),Angular UI Bootstrap 0.10.0,JQuery 2.0.3
Seems to be a bug in bootstrap-ui, any ideas for a workaround? 似乎是bootstrap-ui中的一个错误,任何解决方法的想法?
Bootstrap UI must have over ridden the Bootstrap default js events Bootstrap UI必须覆盖Bootstrap默认的js事件
I wrote some code to do it .. it might atleast give you some idea 我写了一些代码来做它...它至少可以给你一些想法
http://plnkr.co/QYKcPEepOrqdyXzfrekH http://plnkr.co/QYKcPEepOrqdyXzfrekH
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.