[TIMOB-19604] ListView: TextField/TextArea value inconsistent
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 4.1.1, Release 8.3.0 |
Fix Version/s | n/a |
Components | n/a |
Labels | engTriage, inconsistent, listview, textfield |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2015-02-26T15:00:22.000+0000 |
Updated | 2019-12-02T21:00:31.000+0000 |
Description
Using a textfield inside a listView, the value becomes inconsistent when hiding the listView (e.g. in a scrollableView) and then gaining focus again.
- Expected behaviour: The value stays the same as before losing focus
- Given behaviour: The value is resetted to the value it had when beeing rendered
An interesting fact: TextField's with the attribute "editable: false" and also TextField's not embedded in ListViews do not have this strange behaviour!
This is a very critical bug to me and my team, so a quick troubleshooting would be very appreciated.
Example code:
<Alloy>
<Window fullscreen="true">
<ScrollableView>
<View>
<ListView>
<Templates>
<ItemTemplate name="field">
<Label left="15" text="Label"/>
<TextField paddingLeft="10" right="15" width="200" height="30" borderColor="#aaa" value="Default value" />
</ItemTemplate>
</Templates>
<ListSection>
<ListItem template="field" />
<ListItem template="field" />
</ListSection>
</ListView>
</View>
<View backgroundColor="red" />
<View backgroundColor="green" />
<View backgroundColor="blue" />
</ScrollableView>
</Window>
</Alloy>
$.index.open();
Added a simple workaround.
Here is an example of my behavior !http://i.imgur.com/HYUaUzq.gif!