-
Notifications
You must be signed in to change notification settings - Fork 156
Labels
20.2.x🐛 bugAny issue that describes a bugAny issue that describes a bug📉 regression📅 date-range-picker✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.version: 20.1.x
Description
Description
After the recent refactor, an additional type of undefined was added for the getEditElement() of the DRP (ref), which causes a compilation error, due to a mismatch with the base definition. The PickerBaseDirective implementations across the library assume the edit element exists:
/** @hidden @internal */
public getEditElement() {
return this.inputDirective.nativeElement;
}
- igniteui-angular version: 20.2.x, 20.1.x
- browser: any
Steps to reproduce
- Open this sample
Result
X [ERROR] TS2416: Property 'getEditElement' in type 'IgxDateRangePickerComponent' is not assignable to the same property in base type 'PickerBaseDirective'.
Type '() => HTMLInputElement | undefined' is not assignable to type '() => HTMLInputElement'.
Type 'HTMLInputElement | undefined' is not assignable to type 'HTMLInputElement'.
Type 'undefined' is not assignable to type 'HTMLInputElement'. [plugin angular-compiler]
node_modules/igniteui-angular/index.d.ts:43610:4:
43610 │ getEditElement(): HTMLInputElement | undefined;
Expected result
App to compile
Attachments
Attach a sample if available, and screenshots, if applicable.
Copilot
Metadata
Metadata
Labels
20.2.x🐛 bugAny issue that describes a bugAny issue that describes a bug📉 regression📅 date-range-picker✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.version: 20.1.x