Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-4.3.0.GA_P02, EE-3.3.0.GA_P08
-
Fix Version/s: EE-4.3.0.GA_P03, EE-3.3.0.GA_P09
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Any
-
Support Case References:Support Case 14656 - https://icesoft.my.salesforce.com/5004u00002OrdqG
Description
When an ace:textEntry has an inField label, if you focus on the field the label is removed, as expected, but if you press the Enter key, the field is populated with the label text.
r53349: prevent submit on enter on ace:textEntry with inField label when the field is empty, in order to avoid having the field populated with the inField label while it has focus (4.x trunk)
r53350: committed fix to EE 3.3 maintenance branch.
The issue was that when pressing enter on an empty ace:textEntry field with an inField label the DOMdiff detected a difference in the input field from being populated with the value to being empty, so it sent an update of the input field only. The field couldn't be submitted with the label in it as the value, though. It required to blur the field and focus again to be able to submit a user-entered value. On the 4.x trunk, things were more complicated as we also have the lazy loading behaviour, where we don't initialize the ace:textEntry component unti it is focused. There was another issue with it where the component was being reinitialized multiple times across dynamic updates, and the focus and blur listeners were being accomulated on the input field.