chore(select): update dispatched change event type (#1357)

Follow-up to #1355
This commit is contained in:
metonym 2022-06-18 12:26:46 -07:00 committed by GitHub
commit b4d0205080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View file

@ -3173,12 +3173,12 @@ None.
### Events ### Events
| Event name | Type | Detail | | Event name | Type | Detail |
| :--------- | :--------- | :------------------ | | :--------- | :--------- | :-------------------------------- |
| change | dispatched | <code>string</code> | | change | dispatched | <code>string &#124; number</code> |
| input | forwarded | -- | | input | forwarded | -- |
| focus | forwarded | -- | | focus | forwarded | -- |
| blur | forwarded | -- | | blur | forwarded | -- |
## `SelectItem` ## `SelectItem`

View file

@ -10236,7 +10236,7 @@
} }
], ],
"events": [ "events": [
{ "type": "dispatched", "name": "change", "detail": "string" }, { "type": "dispatched", "name": "change", "detail": "string | number" },
{ "type": "forwarded", "name": "input", "element": "select" }, { "type": "forwarded", "name": "input", "element": "select" },
{ "type": "forwarded", "name": "focus", "element": "select" }, { "type": "forwarded", "name": "focus", "element": "select" },
{ "type": "forwarded", "name": "blur", "element": "select" } { "type": "forwarded", "name": "blur", "element": "select" }

View file

@ -1,6 +1,6 @@
<script> <script>
/** /**
* @event {string} change * @event {string | number} change
*/ */
/** /**

View file

@ -109,7 +109,7 @@ export interface SelectProps
export default class Select extends SvelteComponentTyped< export default class Select extends SvelteComponentTyped<
SelectProps, SelectProps,
{ {
change: CustomEvent<string>; change: CustomEvent<string | number>;
input: WindowEventMap["input"]; input: WindowEventMap["input"];
focus: WindowEventMap["focus"]; focus: WindowEventMap["focus"];
blur: WindowEventMap["blur"]; blur: WindowEventMap["blur"];