bpopup onClose not firing with close

464 Views Asked by At

Seem to be having an issue with the onClose event not firing when calling the close function manually.

Calling the popup

$('#messageBoxPopup').bPopup({
                    easing: 'easeOutBack',
                    speed: 450,
                    onClose: function () {
                        alert('clear');
                        $('#messageBoxContent').html('');
                    }
                });

Closing the popup

$('#messageBoxPopup').bPopup().close();
1

There are 1 best solutions below

0
Hemang vora On
$('#messageBoxPopup').bPopup().close();

working fine for me please check for all js dependencies for bpopup