Javascript 为什么Ext.MessageBox在多次单击“后被卡住”;“好的”;按钮
我使用ExJS框架的MessageBox显示带有“Ok”按钮的对话框 由于某些原因,在单击“断开”的步骤时,它会跳过这部分代码:Javascript 为什么Ext.MessageBox在多次单击“后被卡住”;“好的”;按钮,javascript,extjs,Javascript,Extjs,我使用ExJS框架的MessageBox显示带有“Ok”按钮的对话框 由于某些原因,在单击“断开”的步骤时,它会跳过这部分代码: this.on({ hiddenchange: function() { config.fn.call( config.scope || null, initialConfig.
this.on({
hiddenchange: function() {
config.fn.call(
config.scope || null,
initialConfig.itemId || initialConfig.text,
prompt ? prompt.getValue() : null,
config
);
button.enable();
},
single: true,
scope: this
});
这个问题与旧版本的ExtJS有关。我无法更新它,因此找到了一个解决方法:禁用如下动画:
// app.js
...
Ext.Msg.defaultAllowedConfig.showAnimation = false;
Ext.Msg.defaultAllowedConfig.hideAnimation = false;
...
您提供的数据很少,无法再现问题。请创建再现您的问题的小提琴。谢谢你的建议,我已经更新了这里的代码。但看起来我有一个超旧版本的ExtJS(2.4.2),最新版本的ExtJS不会重现这个bug。可能和版本有关。无论如何谢谢你!我已经根据Lythx更新了这个bug的描述,在旧的sencha touch应用程序中运行iOS UIWebView时,弹出窗口并没有消失,禁用了为我们工作的动画。
this.on({
hiddenchange: function() {
config.fn.call(
config.scope || null,
initialConfig.itemId || initialConfig.text,
prompt ? prompt.getValue() : null,
config
);
button.enable();
},
single: true,
scope: this
});
// app.js
...
Ext.Msg.defaultAllowedConfig.showAnimation = false;
Ext.Msg.defaultAllowedConfig.hideAnimation = false;
...