Bootstrap 4.1 - 模态失败,出现'错误:Object.keys:参数不是对象'

时间:2018-04-25 18:27:00

标签: bootstrap-4

刚刚将我们的应用程序从Bootstrap 4.0更新到4.1

现在,以前完美运作的Modals将无法启动 - 例如

$('#PopupModalData').modal();

并在IE 11中失败(无法使用其他浏览器进行测试)

Error: Object.keys: argument is not an Object

有什么想法发生了什么?

2 个答案:

答案 0 :(得分:4)

4.1中似乎存在一个错误(如果模态无法打开则是一个很大的错误)...

Link to bug report at github

它将在4.1.1中修复,但没有说明何时发布: - (

答案 1 :(得分:0)

尝试使用Bootstrap 4.1.2补丁https://github.com/twbs/bootstrap使用

  

dist / css / bootstrap.min.css

     

dist / js / bootstrap.min.js

作为源文件,它对我的​​应用程序正常工作。