Resolve Svelte 5 warnings

This commit is contained in:
Eric Liu 2024-10-20 11:14:55 -07:00
commit c2644a59ba
4 changed files with 4 additions and 1 deletions

View file

@ -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>

View file

@ -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}"

View file

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

View file

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