Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24603] Windows: Remove all children is not working on windows devices

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-05-02T16:48:38.000+0000
Affected Version/sRelease 6.0.3
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsn/a
Reporter Ricardo Ramirez
AssigneeKota Iguchi
Created2017-04-19T21:52:22.000+0000
Updated2017-05-02T23:29:50.000+0000

Description

H5. Issue Description Using Ti.UI.View.removeAllChildren on a View element on Windows devices results in no children being removed. There is a viable workaround in iterating through each child of a View and removing it individually. However, trying to use removeAllChildren then using this workaround results in nothing happening (it is possible that removeAllChildren is somehow removing items from the View.children array without affecting the UI).

Steps to Reproduce

Here is a bare bones project that reproduces this issue: https://github.com/bbuehler-axway-support/windows-removeAllChildren To use this example app, add children to the view by clicking the "Add Child View" button. Clicking the "Remove All Children" button does nothing. Kill and relaunch the app. Add more child views. Clicking "Remove Each Child" button removes all children. Add more child views. Clicking the "Remove All Children" button still does nothing; without killing and relaunching the app, add more child views and remove them with "Remove Each Child". Child views added before clicking "Remove All Children" will remain while child views added afterward will be removed correctly.

Comments

  1. Kota Iguchi 2017-04-24

    https://github.com/appcelerator/titanium_mobile_windows/pull/981
  2. Samir Mohammed 2017-05-02

    Verified fix in SDK version 6.2.0.v20170502104202 and 6.1.0.v20170502132103 test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/982 (6_1_X) https://github.com/appcelerator/titanium_mobile_windows/pull/981 (Master)

JSON Source