Problem with Bootstrap 4 Modal

Copper Contributor

I am using Edge Dev 77.0.235.5

 

I am showing/hiding a Bootstrap 4 modal on Ajax calls using this jQuery code:

$(document).ajaxStart(function () {
$(‘#wait’).modal(‘show’);
});
$(document).ajaxStop(function () {
$(‘#wait’).modal(‘hide’);
});

When I make an Ajax call from an dropdown change in my View, this works fine. This Ajax call populates a table dynamically with links in the table header. Clicking one of these links will repeat the Ajax call with the data necessary to sort the table by the table header id on the backend, send the result to .done{} and rewrite the table. In Edge Dev, when I make the Ajax call from the dynamically generated link, the Bootstrap 4 modal does not close on $(‘#wait’).modal(‘hide’).

 

This code works fine in Chrome, IE and Firefox but not in Edge Dev.

2 Replies

@Carolyn_Schroeder 

I have found a workaround which is to clear the div holding the dynamically generated table before the data is retrieved rather than after the data is retrieved.  I have attached the workaround solution.

@Carolyn_Schroeder 

 

I am happy to report that the problem I report in the Reproduction project has been fixed in EdgeDev 78.0.249.1