Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-1.8.2.GA_P03
-
Fix Version/s: EE-3.0.0.BETA, 3.0.1, EE-1.8.2.GA_P04
-
Component/s: ICE-Components
-
Labels:None
-
Environment:-
-
Workaround Exists:Yes
-
Workaround Description:
Description
The web browsers auto-complete/auto-fill selection is interfering with input validation in an ice:inputText. The user will enter text, the browser will present a list of auto-complete options, they will then select an item using the keyboard and then press enter. The issue is that since the focus is still in the ice:inputText, the value is submitted. This is due to the ice:inputText using the enter key listener to fire the action event. The recommendation is to extend the ice:inputText component (new attribute) to prevent enter key submission for this scenario.
We believe that the fix for this involves having the ice:inputText not register an Enter key listener at all if there is no action event listener defined. That way, pressing enter when the autocomplete popup is shown will not submit the form before the newly selected value (from the autocomplete popup) can be set in the component.
Something to be aware of here is that the ice:form has support for automatically submitting the form if enter is pressed in an input component on the form. This feature may or may not be involved in the customers use-case. If this feature is enabled then it's impact on the overall outcome will need to be analyzed and a different solution may be required.