I have a normal modal dialog. It was working with Bootstrap Version 4.1.0. Now I upgraded to Version 4.4.1 and it does not work any more. Why is that? I think there are no differences between both versions regarding modal dialogs.
<div class="modal fade" id="1" tabindex="-1" role="dialog" aria-labelledby="modalLabel_1" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<form action="update" method="POST">
<div class="modal-header">
<h5 class="modal-title" id="modalLabel_1">Edit</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Test
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Schließen</button>
<button type="submit" class="btn btn-primary">Speichern</button>
</div>
</form>
</div>
</div>
</div>
<button type="button" class="btn btn-primary float-right" data-toggle="modal" data-target="#1">
Open Modal
</button>
Find the Bootstrap versions here:
Update 1:
The following workaround works:
$('button[data-toggle=modal]').click(function(){
$(".modal").modal();
});