Skip to content

Commit f042275

Browse files
fix: emit correct shape for single select change (#1284)
1 parent 965c0c2 commit f042275

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

projects/components/src/table/controls/table-controls.component.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import {
6767
class="control select"
6868
showBorder="true"
6969
searchMode="${MultiSelectSearchMode.CaseInsensitive}"
70-
(selectedChange)="this.onMultiSelectChange(selectControl, $event)"
70+
(selectedChange)="this.onSelectChange(selectControl, $event)"
7171
>
7272
<ht-select-option
7373
*ngFor="let option of selectControl.options"
@@ -241,6 +241,13 @@ export class TableControlsComponent implements OnChanges {
241241
});
242242
}
243243

244+
public onSelectChange(select: TableSelectControl, selection: TableSelectControlOption): void {
245+
this.selectChange.emit({
246+
select: select,
247+
values: [selection]
248+
});
249+
}
250+
244251
public onCheckboxChange(checked: string[]): void {
245252
const diff = this.checkboxDiffer?.diff(checked);
246253
if (!diff) {

0 commit comments

Comments
 (0)