-1
内线版本:5.1.0.107 浏览器:当我创建一个具有价值的ComboBox IE 10/11组合框在IE 10/11被集中
,组合框将重点就被渲染后。
demo: http://ift.tt/1326fZR
我该如何解决这个问题?
内线版本:5.1.0.107 浏览器:当我创建一个具有价值的ComboBox IE 10/11组合框在IE 10/11被集中
,组合框将重点就被渲染后。
demo: http://ift.tt/1326fZR
我该如何解决这个问题?
对我来说,它的工作后,我有覆盖更多的东西。
Ext.override(Ext.form.field.Base, {
initEvents: function() {
var me = this,
inputEl = me.inputEl,
onFieldMutation = me.onFieldMutation,
events = me.checkChangeEvents,
len = events.length,
i, event;
if (inputEl) {
me.mon(inputEl, Ext.supports.SpecialKeyDownRepeat ? 'keydown' : 'keypress', me.fireKey, me);
for (i = 0; i < len; ++i) {
event = events[i];
if (event === 'propertychange') {
me.usesPropertychange = true;
}
if (event === 'textInput') {
me.usesTextInput = true;
}
me.mon(inputEl, event, onFieldMutation, me);
}
}
me.callParent();
},
bindPropertyChange: function(active) {
var method = active ? 'resumeEvent' : 'suspendEvent',
inputEl = this.inputEl;
if (this.usesPropertychange) {
inputEl[method]('propertychange');
}
if (this.usesTextInput) {
inputEl[method]('textInput');
}
}
});
该部分从版本5.1.1.451复制而来,其中bug已经修复。
解决方案,您可以在这里找到:
https://www.sencha.com/forum/showthread.php?296103-ComboBox-in-IE-10-11-be-focus
Ext.define('Ext.overrides.form.field.ComboBox', {
override: 'Ext.form.field.ComboBox',
// OVERRIDE
checkChangeEvents : Ext.isIE ?
['change', 'propertychange', 'keyup'] :
['change', 'input', 'textInput', 'keyup', 'dragdrop']
});
请用文字描述您的问题,并将相关代码添加到问题中。 – Teemu