Skip to content

Commit 8d27e8d

Browse files
authored
fix(grid,state): restore directive w/o options, drop duplicate prop (#14545)
1 parent 3cc685d commit 8d27e8d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

projects/igniteui-angular/src/lib/grids/state-base.directive.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ interface Feature {
113113
/* blazorIndirectRender */
114114
@Directive()
115115
export class IgxGridStateBaseDirective {
116-
private static ngAcceptInputType_options: IGridStateOptions | '';
117116

118117
private featureKeys: GridFeatures[] = [];
119118
private state: IGridState;

projects/igniteui-angular/src/lib/grids/state.directive.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { GridFeatures, IGridState, IGridStateOptions, IgxGridStateBaseDirective
66
standalone: true
77
})
88
export class IgxGridStateDirective extends IgxGridStateBaseDirective {
9-
9+
private static ngAcceptInputType_options: IGridStateOptions | '';
1010

1111
/**
1212
* An object with options determining if a certain feature state should be saved.
@@ -17,14 +17,14 @@ export class IgxGridStateDirective extends IgxGridStateBaseDirective {
1717
* public options = {selection: false, advancedFiltering: false};
1818
* ```
1919
*/
20-
@Input('igxGridState')
21-
public get stateOptions(): IGridStateOptions {
22-
return super.options;
23-
}
20+
@Input('igxGridState')
21+
public override get options(): IGridStateOptions {
22+
return super.options;
23+
}
2424

25-
public set stateOptions(value: IGridStateOptions) {
26-
super.options = value;
27-
}
25+
public override set options(value: IGridStateOptions) {
26+
super.options = value;
27+
}
2828

2929
/**
3030
* Gets the state of a feature or states of all grid features, unless a certain feature is disabled through the `options` property.

0 commit comments

Comments
 (0)