#2919 closed defect (fixed)
ComboBox widget input field loses focus after each character
Reported by: | guest | Owned by: | haysmark |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Dijit - Form | Version: | 0.4.2 |
Keywords: | ComboBox focus | Cc: | [email protected]… |
Blocked By: | Blocking: |
Description (last modified by )
ComboBox? input field loses focus:
- IE6 & IE7 (not Firefox)
- After the selection list has been popped up and an entry chosen
- User then tries to type more characters at the end of the list
- after each character, input field loses focus and user must click in the field to type the next character
- this does *not* happen if the popup list is not displayed.
To reproduce, I was able to use the nightly build test page for the AutoCompleter? widget (build dated 5/22):
http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_AutoCompleter.html
Steps:
- Use ComboBox? 2 (or 3, probably others) on that page
- Open the drop down list and select an entry
- Entry appears in the combobox entry field (it's selected)
- Place cursor at end of field and start typing. (Add to entry)
- After each character, the focus will go out of the entry field and it will not return unless I click back in the entry field myself.
In my application, the loss of focus does not occur unless I open the drop down list - if I just type in the box, I'm fine.
I've tried turning off auto-complete, but that doesn't seem to affect this. I am creating the combobox programatically and I set "autoComplete: false" - but the widget still seems to be doing the autocomplete - it keeps popping up the list as I type. Not sure if this is related.
I am also not using "forceValidOption" - user should be able to have any value in my combobox - including selecting an existing option and changing the value in the field.
This is a fairly serious bug for me. Any suggestions to help workaround it would be appreciated.
Change History (7)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Component: | Widgets → Dijit |
---|---|
Milestone: | → 0.9 |
Owner: | changed from bill to haysmark |
comment:3 Changed 14 years ago by
Description: | modified (diff) |
---|
comment:4 Changed 14 years ago by
Check the updated 0.9 link. I cannot reproduce this in IE7 with AutoCompleter? 2.
The autoComplete flag determines the behavior of the highlighting code. Notice as you type in the second AutoCompleter? the rest of the text gets filled in for you and is highlighted. This does not occur in the other boxes because they have autoComplete set to false. The popup appears in both instances by design.
comment:5 Changed 14 years ago by
The 0.9 behavior can be verified at: http://archive.dojotoolkit.org/nightly/checkout/dijit/tests/form/test_AutoCompleter.html
comment:6 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
I can confirm that this issue occurs in 0.4.3. I tested it in 0.9 rev 8744 (see above link) and it was resolved at some point.
comment:7 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Also this is true in in the latest 0.9 svn branch. I found that by adding the following line in _showResultList I am able to bring the focus back
setTimeout(dojo.lang.hitch(this, this._tryFocus), 100); and commenting this._hideResultList();
This is the updated function
setTimeout(dojo.lang.hitch(this, this._tryFocus), 100);