diff --git a/src/combobox/combobox.component.spec.ts b/src/combobox/combobox.component.spec.ts index feef065459..9203d24054 100644 --- a/src/combobox/combobox.component.spec.ts +++ b/src/combobox/combobox.component.spec.ts @@ -33,7 +33,7 @@ class ComboboxTest { {id: "2", content: "two", selected: false}, {id: "3", content: "three", selected: false} ]; - type = 'single'; + type = "single"; itemValueKey = undefined; model: ListItem; } @@ -207,6 +207,6 @@ describe("Combo box", () => { dropdownOption.click(); fixture.detectChanges(); - expect(wrapper.model).toEqual(['1']); + expect(wrapper.model).toEqual(["1"]); }); }); diff --git a/src/combobox/combobox.component.ts b/src/combobox/combobox.component.ts index 9291ac604b..11202d96cc 100644 --- a/src/combobox/combobox.component.ts +++ b/src/combobox/combobox.component.ts @@ -696,12 +696,12 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD const selected = this.view.getSelected(); // in case there are disabled items they should be mapped according to itemValueKey - if (this.itemValueKey && selected) { - const values = selected.map((item) => item[this.itemValueKey]); - this.propagateChangeCallback(values); - } else { - this.propagateChangeCallback(selected); - } + if (this.itemValueKey && selected) { + const values = selected.map((item) => item[this.itemValueKey]); + this.propagateChangeCallback(values); + } else { + this.propagateChangeCallback(selected); + } this.selected.emit(selected as any); this.clear.emit(event); diff --git a/src/datepicker/datepicker.stories.ts b/src/datepicker/datepicker.stories.ts index b40a3fa1c6..265a7cee63 100644 --- a/src/datepicker/datepicker.stories.ts +++ b/src/datepicker/datepicker.stories.ts @@ -168,7 +168,7 @@ Range.args = { language: "en", flatpickrOptions: { minDate: new Date("11/01/24"), - maxDate: new Date("11/30/24"), + maxDate: new Date("11/30/24") } }; Range.argTypes = {