mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +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 | -- |
|
| mouseenter | forwarded | -- |
|
||||||
| mouseleave | forwarded | -- |
|
| mouseleave | forwarded | -- |
|
||||||
| change | forwarded | -- |
|
| change | forwarded | -- |
|
||||||
|
| focus | forwarded | -- |
|
||||||
| blur | forwarded | -- |
|
| blur | forwarded | -- |
|
||||||
|
|
||||||
## `CheckboxSkeleton`
|
## `CheckboxSkeleton`
|
||||||
|
|
|
@ -926,6 +926,7 @@
|
||||||
"element": "CheckboxSkeleton"
|
"element": "CheckboxSkeleton"
|
||||||
},
|
},
|
||||||
{ "type": "forwarded", "name": "change", "element": "input" },
|
{ "type": "forwarded", "name": "change", "element": "input" },
|
||||||
|
{ "type": "forwarded", "name": "focus", "element": "input" },
|
||||||
{ "type": "forwarded", "name": "blur", "element": "input" }
|
{ "type": "forwarded", "name": "blur", "element": "input" }
|
||||||
],
|
],
|
||||||
"typedefs": [],
|
"typedefs": [],
|
||||||
|
|
|
@ -112,6 +112,7 @@
|
||||||
}
|
}
|
||||||
}}"
|
}}"
|
||||||
on:change
|
on:change
|
||||||
|
on:focus
|
||||||
on:blur
|
on:blur
|
||||||
/>
|
/>
|
||||||
<label for="{id}" title="{title}" class:bx--checkbox-label="{true}">
|
<label for="{id}" title="{title}" class:bx--checkbox-label="{true}">
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
aria-checked="{indeterminate ? undefined : checked}"
|
aria-checked="{indeterminate ? undefined : checked}"
|
||||||
on:change
|
on:change
|
||||||
|
on:focus
|
||||||
|
on:blur
|
||||||
/>
|
/>
|
||||||
<label
|
<label
|
||||||
for="{id}"
|
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"];
|
mouseenter: WindowEventMap["mouseenter"];
|
||||||
mouseleave: WindowEventMap["mouseleave"];
|
mouseleave: WindowEventMap["mouseleave"];
|
||||||
change: WindowEventMap["change"];
|
change: WindowEventMap["change"];
|
||||||
|
focus: WindowEventMap["focus"];
|
||||||
blur: WindowEventMap["blur"];
|
blur: WindowEventMap["blur"];
|
||||||
},
|
},
|
||||||
{ labelText: {} }
|
{ labelText: {} }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue