I have found a bug, I think, while using a swal if confirm prompt.
When I call the method below, I can't navigate my HTML forms using the tab on my keyboard, the key tab simple stops working. When I use the standard JS confirm, my forms and my tab key works correctly.
I found a workaround, calling a location.reload(); after the method, but still...
I have found a bug, I think, while using a swal if confirm prompt.
When I call the method below, I can't navigate my HTML forms using the tab on my keyboard, the key tab simple stops working. When I use the standard JS confirm, my forms and my tab key works correctly.
I found a workaround, calling a location.reload(); after the method, but still...
Fell free to check my code. https://github.com/Pronjaboy/restful
`swal({ title: "Apagar cliente??", text: "Os dados do cliente serão apagados, não será possível desfazer!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Sim, apagar!", cancelButtonText: "Não, cancelar!", closeOnConfirm: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm) { axios.delete('http://localhost:5000/clientes/'.concat(temp._id)) .then( response => { if(response.data || response.status != 404) { swal("Cliente deletado!", "Os dados do seu cliente foram apagados com sucesso.", "success"); document.getElementById('fechaClienteInfo').click(); clientes.splice(clientes.indexOf(temp),1); } clientes.splice(clientes.indexOf(temp),1);