Skip to content

Commit fd9d41b

Browse files
committed
chore: register IgcInputComponent; format
1 parent ed171ec commit fd9d41b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/components/date-range-picker/date-range-picker.ts

+8
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ import { DateTimeUtil } from '../date-time-input/date-util.js';
5252
import IgcDialogComponent from '../dialog/dialog.js';
5353
import IgcFocusTrapComponent from '../focus-trap/focus-trap.js';
5454
import IgcIconComponent from '../icon/icon.js';
55+
import IgcInputComponent from '../input/input.js';
5556
import IgcPopoverComponent from '../popover/popover.js';
5657
import IgcValidationContainerComponent from '../validation-container/validation-container.js';
5758
import IgcDateRangeInputComponent, {
@@ -69,6 +70,8 @@ export interface IgcDateRangePickerComponentEventMap {
6970
igcInput: CustomEvent<(Date | null)[]>;
7071
}
7172

73+
//const formats = new Set(['short', 'medium', 'long', 'full']);
74+
7275
/**
7376
* The igc-date-range-picker allows the user to select a range of dates.
7477
*
@@ -111,6 +114,7 @@ export default class IgcDateRangePickerComponent extends FormAssociatedRequiredM
111114
IgcDateRangePickerComponent,
112115
IgcCalendarComponent,
113116
IgcDateTimeInputComponent,
117+
IgcInputComponent,
114118
IgcFocusTrapComponent,
115119
IgcIconComponent,
116120
IgcPopoverComponent,
@@ -849,6 +853,10 @@ export default class IgcDateRangePickerComponent extends FormAssociatedRequiredM
849853
}
850854

851855
private renderSingleInput(id: string) {
856+
// const format = formats.has(this._displayFormat!)
857+
// ? `${this._displayFormat}Date`
858+
// : this._displayFormat;
859+
852860
return html` <igc-input
853861
id=${id}
854862
aria-haspopup="dialog"

0 commit comments

Comments
 (0)