【问题标题】:Bootstrap 4.1 - modal fails with 'Error: Object.keys: argument is not an Object'Bootstrap 4.1 - 模式因“错误:Object.keys:参数不是对象”而失败
【发布时间】:2018-04-25 18:26:59
【问题描述】:

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

现在,以前运行良好的 Modals 将无法启动 - 例如

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

在 IE 11 中失败(还不能用其他浏览器测试)

Error: Object.keys: argument is not an Object

有什么想法吗?

【问题讨论】:

    标签: bootstrap-4


    【解决方案1】:

    在 4.1 中似乎存在一个错误(如果模式无法打开,这是一个非常重要的错误)...

    Link to bug report at github

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

    【讨论】:

    • 同时我可以确认这已在 v 4.1.1 中修复。
    【解决方案2】:

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

    dist/css/bootstrap.min.css

    dist/js/bootstrap.min.js

    作为源文件,它适用于我的应用程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-18
      • 1970-01-01
      • 2018-10-31
      • 2017-12-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多