Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-1.8.2.GA_P03
-
Fix Version/s: EE-1.8.2.GA_P05
-
Component/s: Framework
-
Labels:None
-
Environment:ICEfaces-EE-1.8.2.GA_P03
-
Assignee Priority:P2
Description
If there is a SelectInputText and the value is typed manually, after leaving the field by tabulator key, it takes some time and the focus jumps back and forward again.
While typing now and going fast with Tab to the next field and typing again, some characters end up in first field instead of the second one. The response created by IceFaces contains follow sequenze:
"Ice.Focus.setFocus('iceform:icepnltabset:0:AutoCmpTxtFace')"
Which is wrong at this time. I think, there is no reason to set the focus back to the first field in such case.
Please find the described behavior on your showcase (Autocomplete example) as well happening.
component-showcase.icesoft.org/component-showcase/showcase.iface
While typing now and going fast with Tab to the next field and typing again, some characters end up in first field instead of the second one. The response created by IceFaces contains follow sequenze:
"Ice.Focus.setFocus('iceform:icepnltabset:0:AutoCmpTxtFace')"
Which is wrong at this time. I think, there is no reason to set the focus back to the first field in such case.
Please find the described behavior on your showcase (Autocomplete example) as well happening.
component-showcase.icesoft.org/component-showcase/showcase.iface
The solution we adopted in some of the components that had this kind of focus issue was to invoke setFocus('') function with an empty string or null as parameter. This way the focus retention feature on the server will not send back the focus command back.
The onblur listener will look like this:
onblur="setFocus(''); iceSubmit(event, this);"