Closed prashant-93 closed 7 years ago
My DialogBox is working fine with FireFox but the action button in the dialog box aren't working
(function() { var dialog = document.querySelector('#otpDialog'); var showDialogButton = document.querySelector('#show-dialog'); // var closeDialogButton = document.querySelector('.close'); //alert("Dialogue is "+dialog); if (! dialog.showModal) { dialogPolyfill.registerDialog(dialog); } showDialogButton.addEventListener('click', function() { dialog.showModal(); }); dialog.querySelector('.close').addEventListener('click', function() { dialog.close(); }); }());
My DialogBox is working fine with FireFox but the action button in the dialog box aren't working