Skip to content

Commit 480b7b8

Browse files
committed
Fix: Clear button causes crash in Singleselect
Refs: #8008
1 parent a6f1acf commit 480b7b8

File tree

1 file changed

+2
-2
lines changed
  • packages/components/src/components/single-select

1 file changed

+2
-2
lines changed

packages/components/src/components/single-select/shadow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ export class KolSingleSelect implements SingleSelectAPI {
109109
this.controller.onFacade.onInput(
110110
new CustomEvent<EventDetail>('input', { bubbles: true, detail: { name: this.state._name as string, value: emptyValue } }),
111111
true,
112-
emptyValue,
112+
{ value: emptyValue },
113113
);
114114
this.controller.onFacade.onChange(
115115
new CustomEvent<EventDetail>('change', { bubbles: true, detail: { name: this.state._name as string, value: emptyValue } }),
116-
emptyValue,
116+
{ value: emptyValue },
117117
);
118118
}
119119
}

0 commit comments

Comments
 (0)