GedMarc / bootstrap4-dialog

bootstrap4 compatible modal dialog based on nakupanda.github.io/bootstrap3-dialog
https://nakupanda.github.io/bootstrap3-dialog/
65 stars 31 forks source link

can't trigger javascript after BootstrapDialog.show({...}) page #16

Closed HKChen closed 5 years ago

HKChen commented 5 years ago

I updated bootstrap 3 to 4.3.1 and bootstrap3-dialog to bootstrap4-dialog. I use BootstrapDialog.show({... data: 'pageUrl' ...}) to open dialog work. But in this dialog page can't trigger any javascript.

GedMarc commented 5 years ago

Please see https://github.com/GedMarc/bootstrap4-dialog/issues/15

This is related to the change in the DOM loading with Bootstrap Modals. Instead of using onShow (Where the dom is not yet loaded), use onShown : function(){}; to fire when the DOM has finished being updated