EasyUI Forum
September 14, 2025, 03:49:50 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: combo 控件点击选择后, 焦点丢失的问题  (Read 8136 times)
iamjxc
Jr. Member
**
Posts: 80


View Profile
« on: March 13, 2014, 12:31:40 AM »

combobox, combotree 等, 点击选择后, panel会关闭, 但是没有把焦点给 text 框, 导致焦点丢失
用户按 tab 键不能跳到下一个录入项里
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 13, 2014, 08:05:42 AM »

Please try this:
Code:
$('#c1').combobox({
    onSelect:function(){
        $(this).combobox('textbox').focus();
    }
})
Logged
iamjxc
Jr. Member
**
Posts: 80


View Profile
« Reply #2 on: March 16, 2014, 07:54:32 PM »

当选中相同的项目时, onSelect , onChange 都没有触发, 改在 onHidePanel 里调用
$(this).combobox('textbox').focus();
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!