Tokay Posted May 31, 2021 Posted May 31, 2021 In one of our projects I get strange message dialog when I try to use TUniSweetAlert: AJax error: Cannot read property 'constructor' of undefined var sw;sw=swal({title:"Title",text:"",type:"success",width:480,padding:20,background:"",animation:true,showCancelButton:false,confirmButtonText:"OK",cancelButtonText:"Cancel",buttonsStyling:true,reverseButtons:false,focusCancel:false,showCloseButton:false,inputPlaceholder:"",inputValue:"",inputAutoTrim:true});sw.then(function(p){ajaxRequest(O190,"confirm",{input: (Ext.isString(p)?p:"")})},function(d){ajaxRequest(O190,"dismiss",{dismiss: d})}); I just put TUniSweetAlert on the form and run it as sa.Execute; In other project all works fine. Quote
Sherzod Posted May 31, 2021 Posted May 31, 2021 8 minutes ago, Tokay said: I just put TUniSweetAlert on the form and run it as sa.Execute; Hmm, how can we reproduce this issue!? Quote
Tokay Posted June 1, 2021 Author Posted June 1, 2021 I've found. Conflict with TUniSFSweetAlert. I've remove it, and all works fine. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.