uxweb/sweet-alert

Sweet Alert Deprecated Methods

Closed this issue · 2 comments

Am getting this error in google chrome how can i remove it

SweetAlert2: "setDefaults" & "resetDefaults" methods are deprecated in favor of "mixin" method and will be removed in the next major release. For new projects, use "mixin". For past projects already using "setDefaults", support will be provided through an additional package.

uxweb commented

@mowimisha

I'm doing a review of the new api for the sweet alert js library. This seems as a breaking change and maybe a new major version will be released.

uxweb commented

@mowimisha I think that you are using another sweet alert js library. I didn't know two of them exists. This PHP package is designed to work with https://github.com/t4t5/sweetalert and not https://github.com/sweetalert2/sweetalert2.