Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: lint fix #3080

Merged
merged 1 commit into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/combobox/combobox.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -207,6 +207,6 @@ describe("Combo box", () => {
dropdownOption.click();
fixture.detectChanges();

expect(wrapper.model).toEqual(['1']);
expect(wrapper.model).toEqual(["1"]);
});
});
12 changes: 6 additions & 6 deletions src/combobox/combobox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/datepicker/datepicker.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Loading