Updatinguserstatus',html:'< h5style="color:#0c5460">Wait...
I'm using Laravel 5.8 and Sweetalert v2 and I'm trying to trigger this alert on Blade with it:
Swal.fire({ title: 'Updating user status
', html: 'Wait...
', width: 400, padding: '1em', background: '#fff url(/images/cream_pixels.png)', timer: 1000, onBeforeOpen: () => { Swal.showLoading() }, });
It pops up correctly but doesn't show the loader and shows me this error on the console:
SweetAlert2: Unknown parameter "onBeforeOpen"
So what’s the problem here?
UsingdidOpen: Runs asynchronously after the popup is shown on the screen. Provide popup DOM element as parameter