mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
Resolve Svelte 5 warnings
This commit is contained in:
parent
1b7c737d14
commit
c2644a59ba
4 changed files with 4 additions and 1 deletions
|
@ -40,6 +40,7 @@
|
|||
max: size == "max",
|
||||
};
|
||||
$: if (size != undefined)
|
||||
// svelte-ignore reactive_declaration_non_reactive_property
|
||||
dispatch("change", { size, breakpointValue: breakpoints[size] });
|
||||
</script>
|
||||
|
||||
|
|
|
@ -192,7 +192,7 @@
|
|||
<button
|
||||
bind:this="{buttonRef}"
|
||||
type="button"
|
||||
aria-haspopup
|
||||
aria-haspopup="true"
|
||||
aria-expanded="{open}"
|
||||
aria-label="{ariaLabel}"
|
||||
id="{id}"
|
||||
|
|
|
@ -88,6 +88,7 @@
|
|||
|
||||
const ctx = getContext("Form");
|
||||
|
||||
// svelte-ignore reactive_declaration_non_reactive_property
|
||||
$: isFluid = !!ctx && ctx.isFluid;
|
||||
$: helperId = `helper-${id}`;
|
||||
$: errorId = `error-${id}`;
|
||||
|
|
|
@ -94,6 +94,7 @@
|
|||
dispatch("change", parse(e.target.value));
|
||||
};
|
||||
|
||||
// svelte-ignore reactive_declaration_non_reactive_property
|
||||
$: isFluid = !!ctx && ctx.isFluid;
|
||||
$: error = invalid && !readonly;
|
||||
$: helperId = `helper-${id}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue