mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(ios): ListView _prepareCell null safety (#10001)
closes https://github.com/NativeScript/NativeScript/issues/10000
This commit is contained in:
@@ -463,7 +463,7 @@ export class ListView extends ListViewBase {
|
||||
cell.owner = new WeakRef(view);
|
||||
} else if (cell.view !== view) {
|
||||
this._removeContainer(cell);
|
||||
(<UIView>cell.view.nativeViewProtected).removeFromSuperview();
|
||||
(<UIView>cell.view?.nativeViewProtected)?.removeFromSuperview();
|
||||
cell.owner = new WeakRef(view);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user