I’m showing myFormPanel includes a form.I’m opening this panel like :
popUpPanel = new myFormPanel();
popUpPanel.show();
I’ve put some validations for the form inside that panel and wanted to show such
validation error message with Ext.Msg.alert(‘please enter X’);
Problem is; when I pop this validation message with Ext.Msg.alert myFormPanel is destroyed.
I think it is because my form and alert uses the same layer so Sencha destroys myFormPanel and shows alert message box.
How can I solve this issue? Is it possible to isolate myFormPanel popup layer and Ext.Msg.alert layer?
Any help will be appreciated.
Thank you.
I think this is a bug, but you can simply set
hideOnMaskTaptofalseovercome this.Working example: fiddle – toggle
hideonMaskTapto see the effect.By default, this config is
true, and in documentation,It seems like
Msg.alertis causing some confusion here andFormPanelthink you are clicking on the mask, and hence causes the panel to dismiss. Perhaps this is the quickest way to solve your problem for now.