Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19604] ListView: TextField/TextArea value inconsistent

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 4.1.1, Release 8.3.0
Fix Version/sn/a
Componentsn/a
LabelsengTriage, inconsistent, listview, textfield
ReporterHans Knöchel
AssigneeUnknown
Created2015-02-26T15:00:22.000+0000
Updated2019-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();

Comments

  1. Hans Knöchel 2015-02-26

    Added a simple workaround.
  2. Sebastian Klaus 2015-02-27

    Here is an example of my behavior !http://i.imgur.com/HYUaUzq.gif!

JSON Source