Open Aarthi-Saba opened 3 years ago
I have used Sweetalert2 inside a form to display popup . Below are the urls used for cdn and the IE polyfills
below is the Swal code I have used for my popup.
function popup(){ Swal.fire({ html: "<div class='swal-custom-text'><span id='mypopup' tabindex='-1' role='dialog' aria-labelledby='mypopup'>heading</span> <br><br> <span> My text</span></div>", confirmButtonText: 'OK', didOpen: focusdialog }) .then(function () { document.getElementById('test').focus(); }); } <div role="button" id="test" tabindex="0" style="color: red; cursor: pointer" title="<%= covidinfo %>" onkeypress="popup();" onclick="popup();" value="<% =info %>" />
Onclick function opens swal as expected,but onkeypress just flashes popup for a second and autocloses on IE11 This works fine on other browsers like chrome,firefox,safari and edge.
I have used Sweetalert2 inside a form to display popup . Below are the urls used for cdn and the IE polyfills
below is the Swal code I have used for my popup.
Onclick function opens swal as expected,but onkeypress just flashes popup for a second and autocloses on IE11 This works fine on other browsers like chrome,firefox,safari and edge.