diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 4f2ddfe8..eb6335b8 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -3180,8 +3180,9 @@ None. | Event name | Type | Detail | | :--------- | :--------- | :-------------------------------- | -| input | dispatched | string | number | +| update | dispatched | string | number | | change | forwarded | -- | +| input | forwarded | -- | | focus | forwarded | -- | | blur | forwarded | -- | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index d14451f4..e93bf3b6 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -10257,8 +10257,9 @@ } ], "events": [ - { "type": "dispatched", "name": "input", "detail": "string | number" }, + { "type": "dispatched", "name": "update", "detail": "string | number" }, { "type": "forwarded", "name": "change", "element": "select" }, + { "type": "forwarded", "name": "input", "element": "select" }, { "type": "forwarded", "name": "focus", "element": "select" }, { "type": "forwarded", "name": "blur", "element": "select" } ], diff --git a/docs/src/pages/components/Select.svx b/docs/src/pages/components/Select.svx index e7bb5e90..3a619e29 100644 --- a/docs/src/pages/components/Select.svx +++ b/docs/src/pages/components/Select.svx @@ -11,7 +11,7 @@ components: ["Select", "SelectItem", "SelectItemGroup", "SelectSkeleton"] If the `selected` prop is not set, the value of the first `SelectItem` will be used as the default value. - console.log("value", e.target.value)}> @@ -23,7 +23,7 @@ If the `selected` prop is not set, the value of the first `SelectItem` will be u Use the `text` prop on `SelectItem` to customize the display value. - console.log("value", e.target.value)}> @@ -35,7 +35,7 @@ Use the `text` prop on `SelectItem` to customize the display value. Use the `selected` prop to specify an initial value. - console.log("value", e.target.value)}> @@ -160,4 +160,4 @@ The `selected` prop is reactive and supports two-way binding. ## Skeleton (hidden label) - \ No newline at end of file + diff --git a/src/Select/Select.svelte b/src/Select/Select.svelte index d95035a8..10e70809 100644 --- a/src/Select/Select.svelte +++ b/src/Select/Select.svelte @@ -1,6 +1,6 @@