mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
feat(select): forward change event
Dispatch `input` instead of `change` when props change internally since `change` is a user event and `input` is an internal event
This commit is contained in:
parent
724d90bd7b
commit
29a83c325c
4 changed files with 9 additions and 8 deletions
4
types/Select/Select.svelte.d.ts
vendored
4
types/Select/Select.svelte.d.ts
vendored
|
@ -109,8 +109,8 @@ export interface SelectProps
|
|||
export default class Select extends SvelteComponentTyped<
|
||||
SelectProps,
|
||||
{
|
||||
change: CustomEvent<string | number>;
|
||||
input: WindowEventMap["input"];
|
||||
input: CustomEvent<string | number>;
|
||||
change: WindowEventMap["change"];
|
||||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue