fix: address Svelte 5 warnings (#2011)

Co-authored-by: brunnerh <brunnerh@users.noreply.github.com>
This commit is contained in:
Eric Liu 2024-10-24 07:43:10 -07:00 committed by GitHub
commit 43fccac1c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View file

@ -40,6 +40,7 @@
max: size == "max",
};
$: if (size != undefined)
// svelte-ignore reactive_declaration_non_reactive_property
dispatch("change", { size, breakpointValue: breakpoints[size] });
</script>

View file

@ -192,7 +192,7 @@
<button
bind:this="{buttonRef}"
type="button"
aria-haspopup
aria-haspopup="true"
aria-expanded="{open}"
aria-label="{ariaLabel}"
id="{id}"

View file

@ -88,7 +88,7 @@
const ctx = getContext("Form");
$: isFluid = !!ctx && ctx.isFluid;
const isFluid = !!ctx && ctx.isFluid;
$: helperId = `helper-${id}`;
$: errorId = `error-${id}`;
$: warnId = `warn-${id}`;

View file

@ -94,7 +94,7 @@
dispatch("change", parse(e.target.value));
};
$: isFluid = !!ctx && ctx.isFluid;
const isFluid = !!ctx && ctx.isFluid;
$: error = invalid && !readonly;
$: helperId = `helper-${id}`;
$: errorId = `error-${id}`;