We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa089aa commit c6f7549Copy full SHA for c6f7549
nativescript-angular/directives/list-view-comp.ts
@@ -158,7 +158,7 @@ export class ListViewComponent implements DoCheck, OnDestroy, AfterContentInit {
158
items.getItem(index) : items[index];
159
let viewRef: EmbeddedViewRef<ListItemContext>;
160
161
- if (args.view) {
+ if (args.view&&args.view[NG_VIEW]) {
162
listViewLog("onItemLoading: " + index + " - Reusing existing view");
163
viewRef = args.view[NG_VIEW];
164
// getting angular view from original element (in cases when ProxyViewContainer
@@ -245,6 +245,7 @@ export function getItemViewRoot(viewRef: ComponentView, rootLocator: RootLocator
245
const rootView = rootLocator(viewRef.rootNodes, 0);
246
rootView.on("unloaded", () => {
247
viewRef.destroy();
248
+ delete rootView[NG_VIEW];
249
});
250
return rootView;
251
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments