Modal Static Events Not Working


#1

Hi.
Continuing the discussion from Bootstrap 4 Modals:
There are 3 static events for Modals but none of them work - show, hide, hidden.
(Don’t know why shown is not present.)

image

Am I doing something wrong, or any work-arounds? I just need to call JS when modal is hidden.


#2

@George / @Teodor Can you please confirm the bug? Or am I doing something wrong?


#3

Try changing the static events code added to:

onshown="js_code_here" 

and

onhidden="js_code_here" 

It should be working just fine.

I see that currently it adds the static events like this:

onshown-bs-modal=""

Maybe @George can check this.


assigned George #6

unlisted #7

#8

onshown / onhidden worked.