对于Extjs组合框,向上/向下箭头键在IE8中不起作用 [英] For Extjs combobox ,UP/DOWN arrow keys do not work in IE8

查看:114
本文介绍了对于Extjs组合框,向上/向下箭头键在IE8中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ext.view.BoundListKeyNav.override({

highlightAt:function(index){

var boundList = this.boundList;

var litem = boundList.all.item(index);

if(litem){

litem = litem.dom;

boundList.highlightItem (litem);

boundList.getTargetEl()。scrollChildIntoView(litem,true);

combo.setValue(boundList.getNode(index).textContent);

}

}

});



使用此代码,显示内容当按下向上/向下箭头键时,在extjs中的组合框文本字段中。但这在IE8中不起作用。当我输入组合框时,它会显示搜索结果,并且只要按下向下/向上箭头键,搜索结果消失了,文本字段仍然是空白。这可能是什么原因?......谢谢

Ext.view.BoundListKeyNav.override({
highlightAt:function (index) {
var boundList = this.boundList;
var litem = boundList.all.item(index);
if (litem) {
litem = litem.dom;
boundList.highlightItem(litem);
boundList.getTargetEl().scrollChildIntoView(litem, true);
combo.setValue(boundList.getNode(index).textContent);
}
}
});

Using this code,to show the content on the combobox textfield in extjs when UP/DOWN arrow keys are pressed.But this does not work in IE8.When i type in the combobox,it shows me the search results and as soon as i press the DOWN/UP arrow key,the search results vanish away and the textfield remains blank.What could be the reason for this?......Thanks

推荐答案

这篇关于对于Extjs组合框,向上/向下箭头键在IE8中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆