fix(item-divider): use prop for sticky (#16691)

This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Manu MA
2018-12-11 23:06:14 +01:00
committed by GitHub
gitea-unlock(16/)
parent e08b739168
commit a6a17235d0
octicon-diff(16/tw-mr-1) 6 changed files with 23 additions and 3 deletions

4
angular/src/directives/proxies.ts
View File

@@ -374,13 +374,13 @@ export class IonItem {
}
export declare interface IonItemDivider extends StencilComponents<'IonItemDivider'> {}
@Component({ selector: 'ion-item-divider', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content>', inputs: ['color', 'mode'] })
@Component({ selector: 'ion-item-divider', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content>', inputs: ['color', 'mode', 'sticky'] })
export class IonItemDivider {
constructor(c: ChangeDetectorRef, r: ElementRef) {
c.detach();
const el = r.nativeElement;
proxyInputs(this, el, ['color', 'mode']);
proxyInputs(this, el, ['color', 'mode', 'sticky']);
}
}