Skip to content

Commit 0ccd96e

Browse files
committed
fix(item-sliding): add forwardRef for item options
1 parent af16846 commit 0ccd96e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/item/item-sliding.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChangeDetectionStrategy, Component, ContentChildren, ContentChild, ElementRef, EventEmitter, Optional, Output, QueryList, Renderer, ViewEncapsulation, NgZone } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, ContentChildren, ContentChild, ElementRef, EventEmitter, forwardRef, Optional, Output, QueryList, Renderer, ViewEncapsulation, NgZone } from '@angular/core';
22

33
import { swipeShouldReset, assert } from '../../util/util';
44
import { Item } from './item';
@@ -172,7 +172,7 @@ export class ItemSliding {
172172
this.setElementClass('item-wrapper', true);
173173
}
174174

175-
@ContentChildren(ItemOptions)
175+
@ContentChildren(forwardRef(() => ItemOptions))
176176
set _itemOptions(itemOptions: QueryList<ItemOptions>) {
177177
let sides = 0;
178178

0 commit comments

Comments
 (0)