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.
Activity
Arturo Zambrano
created issue -
Arturo Zambrano
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Arturo Zambrano [ artzambrano ] |
Ken Fyten
made changes -
Fix Version/s | EE-3.3.0.GA_P09 [ 13781 ] |
Arturo Zambrano
made changes -
Affects Version/s | EE-4.3.0.GA_P02 [ 13292 ] |
Arturo Zambrano
made changes -
Fix Version/s | EE-4.3.0.GA_P03 [ 13570 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #53349 | Mon Apr 19 08:44:15 MDT 2021 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/textentry/textentry.js
|
Arturo Zambrano
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
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.