Я использую BootstrapDialog с Bootstrap4 и Jquery3.3.1, когда я вызываю BootstrapDialog.confirm, тогда он выдает ошибку «Uncaught TypeError: Object.keys, вызываемый для не-объекта» в более старой версии chrome. Я также добавил Jquery-migrate3.0.0, но не сработало. Но BootstrapDialog отлично работает с Bootstrap3 и jquery-2.2.3
BootstrapDailog не работает в Bootstrap4 с Jquery 3.3.1
comment
пожалуйста, предоставьте нам свой код
- person rieckpil   schedule 07.07.2018
comment
На самом деле это сработало, когда я обновил загрузчик до bootstrap4.1. Спасибо за ответы.
- person Ravi Raggu   schedule 10.07.2018
Ответы (1)
Bootstrap 4 Dialog или Modals были немного странными. Но попробуйте это решение и надеюсь, что оно сработает для вас.
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalCenter">
Launch demo modal
</button>
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalCenterTitle">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
person
ChinwalPrasad
schedule
29.06.2018