ehpc / bootstrap-waitingfor

"Waiting for..." modal dialog with progress bar for Bootstrap
MIT License
138 stars 82 forks source link

show.bs.modal doesn't trigger #24

Open hognevevle opened 7 years ago

hognevevle commented 7 years ago

Hi,

As this plugin uses the modal component of Bootstrap, one would expect the default events to be usable (such as 'show.bs.modal'). However, when calling waitingDialog.show();, that event doesn't seem to be triggered as expected.

Am I missing something, or is this a bug?

Example: https://bootsnipp.com/snippets/PElzm (check the HTML. The second console.log() is never executed).

ehpc commented 7 years ago

Hi. Well it's probably a bug caused by dynamically created html. So your document boud event handler is never called.