Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19604

ListView: TextField/TextArea value inconsistent

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Release 4.1.1, Release 8.3.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Mac OS X 10.10.3
      Ti.SDK 3.4.1.GA & 3.5.0.GA

      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:

      index.xml

      <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.js

      $.index.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hknoechel Hans Knöchel
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20412
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration