Content-Length: 263781 | pFad | http://github.com/NativeScript/NativeScript/commit/dca77183d1287309a564059402f3d12ca84e0a9a

28 fix(ios): proper cleanup of reused listview cell content (#10603) · NativeScript/NativeScript@dca7718 · GitHub
Skip to content

Commit dca7718

Browse files
authored
fix(ios): proper cleanup of reused listview cell content (#10603)
1 parent 499fe8d commit dca7718

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/ui/list-view/index.ios.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,9 @@ export class ListView extends ListViewBase {
460460
if (!cell.view) {
461461
cell.owner = new WeakRef(view);
462462
} else if (cell.view !== view) {
463+
// Remove view from super view now as nativeViewProtected will be null afterwards
464+
(<UIView>cell.view.nativeViewProtected)?.removeFromSuperview();
463465
this._removeContainer(cell);
464-
(<UIView>cell.view?.nativeViewProtected)?.removeFromSuperview();
465466
cell.owner = new WeakRef(view);
466467
}
467468

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/NativeScript/commit/dca77183d1287309a564059402f3d12ca84e0a9a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy