mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore(select): update dispatched change event type (#1357)
Follow-up to #1355
This commit is contained in:
parent
78d3f1328a
commit
b4d0205080
4 changed files with 9 additions and 9 deletions
|
@ -3174,8 +3174,8 @@ None.
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
| Event name | Type | Detail |
|
| Event name | Type | Detail |
|
||||||
| :--------- | :--------- | :------------------ |
|
| :--------- | :--------- | :-------------------------------- |
|
||||||
| change | dispatched | <code>string</code> |
|
| change | dispatched | <code>string | number</code> |
|
||||||
| input | forwarded | -- |
|
| input | forwarded | -- |
|
||||||
| focus | forwarded | -- |
|
| focus | forwarded | -- |
|
||||||
| blur | forwarded | -- |
|
| blur | forwarded | -- |
|
||||||
|
|
|
@ -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" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
/**
|
/**
|
||||||
* @event {string} change
|
* @event {string | number} change
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
2
types/Select/Select.svelte.d.ts
vendored
2
types/Select/Select.svelte.d.ts
vendored
|
@ -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"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue