EasyUI Forum
May 03, 2024, 11:33:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Combobox does not return focus to input after selection  (Read 7594 times)
phunksta
Jr. Member
**
Posts: 54


View Profile Email
« on: May 21, 2015, 07:23:43 AM »

Hi, Please see fiddle: https://jsfiddle.net/phunksta/smnnymay/

After selection of an option by whatever method in the combo, focus is not returned to the input field. As the panel was appended to the body, and is outside of the form, the form has now lost focus.
Ideally once the panel is closed focus should always return to the input so the user is returned to the right form.
« Last Edit: June 16, 2015, 03:31:29 AM by phunksta » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 21, 2015, 05:59:08 PM »

You are missing the 'idField' property set to the combogrid, please try the updated example https://jsfiddle.net/smnnymay/2/
Logged
phunksta
Jr. Member
**
Posts: 54


View Profile Email
« Reply #2 on: June 16, 2015, 03:31:03 AM »

Thanks stworthy. I can see that does work fine in the fiddle.
Annoyingly, in my application I *do* have the idField set, and the 'not focussing' behaviour persists.

I will mark this solved and move to the 'help' forum.
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!