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

Windows: section updateItemAt updates wrong item

    Details

    • Story Points:
      5
    • Sprint:
      2016 Sprint 16 SDK

      Description

      affect version - 5_4_X 5.4.0.v20160802165655

      index.js:

      function onUpdate() {
      	$.section.updateItemAt(1, {info: {text: 'update'}});
      }
       
      $.section.appendItems([
      	{info: {text: 'title 1'}},
      	{info: {text: 'title 2'}},
      	{info: {text: 'title 3'}}
      ]);
      $.win.open();
      

      index.xml:

      <Alloy>
          <Window id="win" backgroundColor='black'>
      		<ListView id="list" defaultItemTemplate="template">
       
                  <Templates>
                      <ItemTemplate name="template">
                          <Label bindId="info" id="title" />
                      </ItemTemplate>
                  </Templates>
       
                  <ListSection id='section' />
              </ListView>
              
              <Button width='100dp' height='50dp' bottom="50dp" backgroundColor='red' onClick='onUpdate' />
      	</Window>
      </Alloy>
      

      in 5_4_X 5.4.0.v20160802165655 updates 2nd elem instead of 1st.
      in 5.3.0 working fine

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              zozo4kin Zakhar Zhuravlev
              Tester:
              Harry Bryant
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration