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:
Enrico Sacchetti 2022-09-26 16:35:57 -04:00
commit 29a83c325c
4 changed files with 9 additions and 8 deletions

View file

@ -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"];
},