fix(ui): correctly initialize InputNumber

When the value is outside min/max the value should not be clamped.
This commit is contained in:
2026-02-06 15:25:18 +01:00
parent cf8943b205
commit 6acce72fb8
2 changed files with 15 additions and 2 deletions

View File

@@ -19,7 +19,6 @@
// normalize bounds
if (min > max) [min, max] = [max, min];
if (value > max) max = value;
let inputEl: HTMLInputElement | undefined = $state();
@@ -105,7 +104,7 @@
}
onMount(() => {
value = snap(clamp(value));
value = snap(value);
});
</script>