I used the below syntax
$('#modal').on('shown.bs.modal', function(event){
alert('some');
});
but don't know what is the reason it just don't work..
I use the opposite code like
$('#modal').on('hidden.bs.modal', function(event){
alert('some');
});
I work just fine..
Refer to this pull request (looks like it is a bug)
Change this line in bootstrap.js
on line 907 from:
that.$element.find('.modal-dialog') // wait for modal to slide in
To:
that.$element // wait for modal to slide in
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With