mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(checkbox): forward on:focus
, on:blur
to Checkbox
and InlineCheckbox
(#1937)
This commit is contained in:
parent
9132bf8e5a
commit
6364b23030
5 changed files with 6 additions and 0 deletions
|
@ -487,6 +487,7 @@ None.
|
|||
| mouseenter | forwarded | -- |
|
||||
| mouseleave | forwarded | -- |
|
||||
| change | forwarded | -- |
|
||||
| focus | forwarded | -- |
|
||||
| blur | forwarded | -- |
|
||||
|
||||
## `CheckboxSkeleton`
|
||||
|
|
|
@ -926,6 +926,7 @@
|
|||
"element": "CheckboxSkeleton"
|
||||
},
|
||||
{ "type": "forwarded", "name": "change", "element": "input" },
|
||||
{ "type": "forwarded", "name": "focus", "element": "input" },
|
||||
{ "type": "forwarded", "name": "blur", "element": "input" }
|
||||
],
|
||||
"typedefs": [],
|
||||
|
|
|
@ -112,6 +112,7 @@
|
|||
}
|
||||
}}"
|
||||
on:change
|
||||
on:focus
|
||||
on:blur
|
||||
/>
|
||||
<label for="{id}" title="{title}" class:bx--checkbox-label="{true}">
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
{...$$restProps}
|
||||
aria-checked="{indeterminate ? undefined : checked}"
|
||||
on:change
|
||||
on:focus
|
||||
on:blur
|
||||
/>
|
||||
<label
|
||||
for="{id}"
|
||||
|
|
1
types/Checkbox/Checkbox.svelte.d.ts
vendored
1
types/Checkbox/Checkbox.svelte.d.ts
vendored
|
@ -100,6 +100,7 @@ export default class Checkbox extends SvelteComponentTyped<
|
|||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
change: WindowEventMap["change"];
|
||||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
{ labelText: {} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue