Tokay Posted May 31, 2021 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted May 31, 2021 Share 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 Link to comment Share on other sites More sharing options...
Tokay Posted May 31, 2021 Author Share Posted May 31, 2021 I'll try to isolate an issue. Quote Link to comment Share on other sites More sharing options...
Tokay Posted June 1, 2021 Author Share Posted June 1, 2021 I've found. Conflict with TUniSFSweetAlert. I've remove it, and all works fine. Quote Link to comment Share on other sites More sharing options...
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.