Basaingeal / Razor.SweetAlert2

A Razor class library for interacting with SweetAlert2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swal.IsLoadingAsync() is broken

ohenebaamissah opened this issue · comments

Swal.IsLoading is not exposed as a method on the window object.

Swal IsLoadingAsync()

Possibly due to a typo in SweetAlert.ts

razorSwal.HideLoading = (): void => {
  Swal.hideLoading();
};

razorSwal.HideLoading = (): boolean => {
  return Swal.isLoading();
};

Yup. I think you're right. I'll try to have a fix out in the next few hours.

This should be fixed in v2.2.1 which will be available on Nuget shortly.
Thanks so much for reporting. Always glad to see people finding the library useful.