EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: iamjxc on March 13, 2014, 12:31:40 AM



Title: combo 控件点击选择后, 焦点丢失的问题
Post by: iamjxc on March 13, 2014, 12:31:40 AM
combobox, combotree 等, 点击选择后, panel会关闭, 但是没有把焦点给 text 框, 导致焦点丢失
用户按 tab 键不能跳到下一个录入项里


Title: Re: combo 控件点击选择后, 焦点丢失的问题
Post by: stworthy on March 13, 2014, 08:05:42 AM
Please try this:
Code:
$('#c1').combobox({
    onSelect:function(){
        $(this).combobox('textbox').focus();
    }
})


Title: Re: combo 控件点击选择后, 焦点丢失的问题
Post by: iamjxc on March 16, 2014, 07:54:32 PM
当选中相同的项目时, onSelect , onChange 都没有触发, 改在 onHidePanel 里调用
$(this).combobox('textbox').focus();