mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix: address Svelte 5 warnings (#2011)
Co-authored-by: brunnerh <brunnerh@users.noreply.github.com>
This commit is contained in:
parent
3511f09b2e
commit
43fccac1c6
4 changed files with 4 additions and 3 deletions
|
@ -40,6 +40,7 @@
|
||||||
max: size == "max",
|
max: size == "max",
|
||||||
};
|
};
|
||||||
$: if (size != undefined)
|
$: if (size != undefined)
|
||||||
|
// svelte-ignore reactive_declaration_non_reactive_property
|
||||||
dispatch("change", { size, breakpointValue: breakpoints[size] });
|
dispatch("change", { size, breakpointValue: breakpoints[size] });
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -192,7 +192,7 @@
|
||||||
<button
|
<button
|
||||||
bind:this="{buttonRef}"
|
bind:this="{buttonRef}"
|
||||||
type="button"
|
type="button"
|
||||||
aria-haspopup
|
aria-haspopup="true"
|
||||||
aria-expanded="{open}"
|
aria-expanded="{open}"
|
||||||
aria-label="{ariaLabel}"
|
aria-label="{ariaLabel}"
|
||||||
id="{id}"
|
id="{id}"
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
|
|
||||||
const ctx = getContext("Form");
|
const ctx = getContext("Form");
|
||||||
|
|
||||||
$: isFluid = !!ctx && ctx.isFluid;
|
const isFluid = !!ctx && ctx.isFluid;
|
||||||
$: helperId = `helper-${id}`;
|
$: helperId = `helper-${id}`;
|
||||||
$: errorId = `error-${id}`;
|
$: errorId = `error-${id}`;
|
||||||
$: warnId = `warn-${id}`;
|
$: warnId = `warn-${id}`;
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
dispatch("change", parse(e.target.value));
|
dispatch("change", parse(e.target.value));
|
||||||
};
|
};
|
||||||
|
|
||||||
$: isFluid = !!ctx && ctx.isFluid;
|
const isFluid = !!ctx && ctx.isFluid;
|
||||||
$: error = invalid && !readonly;
|
$: error = invalid && !readonly;
|
||||||
$: helperId = `helper-${id}`;
|
$: helperId = `helper-${id}`;
|
||||||
$: errorId = `error-${id}`;
|
$: errorId = `error-${id}`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue