fix(multi-select): forward on:input for filterable variant (#2170)

This commit is contained in:
Nick Wing 2025-06-10 17:31:28 -05:00 committed by GitHub
commit aecc4e8eec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 0 deletions

View file

@ -2419,6 +2419,7 @@ export interface MultiSelectItem {
| clear | dispatched | <code>null</code> | | clear | dispatched | <code>null</code> |
| blur | dispatched | <code>FocusEvent &#124; CustomEvent<FocusEvent></code> | | blur | dispatched | <code>FocusEvent &#124; CustomEvent<FocusEvent></code> |
| keydown | forwarded | -- | | keydown | forwarded | -- |
| input | forwarded | -- |
| keyup | forwarded | -- | | keyup | forwarded | -- |
| focus | forwarded | -- | | focus | forwarded | -- |
| paste | forwarded | -- | | paste | forwarded | -- |

View file

@ -8943,6 +8943,11 @@
"name": "keydown", "name": "keydown",
"element": "input" "element": "input"
}, },
{
"type": "forwarded",
"name": "input",
"element": "input"
},
{ {
"type": "forwarded", "type": "forwarded",
"name": "keyup", "name": "keyup",

View file

@ -459,6 +459,7 @@
if (!open) open = true; if (!open) open = true;
} }
}} }}
on:input
on:keyup on:keyup
on:focus on:focus
on:blur on:blur

View file

@ -255,6 +255,7 @@ export default class MultiSelect extends SvelteComponentTyped<
clear: CustomEvent<null>; clear: CustomEvent<null>;
blur: FocusEvent | CustomEvent<FocusEvent>; blur: FocusEvent | CustomEvent<FocusEvent>;
keydown: WindowEventMap["keydown"]; keydown: WindowEventMap["keydown"];
input: WindowEventMap["input"];
keyup: WindowEventMap["keyup"]; keyup: WindowEventMap["keyup"];
focus: WindowEventMap["focus"]; focus: WindowEventMap["focus"];
paste: WindowEventMap["paste"]; paste: WindowEventMap["paste"];