I'm not sure whether your issue already fixed or not. However, I also faced the same problem, and I fixed it by using the following code. Posting answer as it may help someone else.
$('#chooseLocation').on('shown.bs.modal', function () { // chooseLocation is the id of the modal.
map.invalidateSize();
});