From 016e1dddda4b40dfff62a915c46c1645efb928bd Mon Sep 17 00:00:00 2001 From: Maxwell Barvian Date: Mon, 28 Oct 2024 05:07:24 -0700 Subject: [PATCH] Input update --- .../pages/[...framework]/examples/_Input/react/Component.tsx | 2 +- .../[...framework]/examples/_Input/svelte/Component.svelte | 2 +- site/src/pages/[...framework]/examples/_Input/vue/Component.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/src/pages/[...framework]/examples/_Input/react/Component.tsx b/site/src/pages/[...framework]/examples/_Input/react/Component.tsx index f2f3f310..85a83074 100644 --- a/site/src/pages/[...framework]/examples/_Input/react/Component.tsx +++ b/site/src/pages/[...framework]/examples/_Input/react/Component.tsx @@ -26,7 +26,7 @@ export default function Input({ value = 0, min = -Infinity, max = Infinity, onCh const num = parseInt(el.value) if (!isNaN(num) && min <= num && num <= max) next = num } - // Manually update the input.value in case the number stays the same i.e. 09 == 9 + // Manually update the input.value in case the number stays the same e.g. 09 == 9 el.value = String(next) onChange?.(next) } diff --git a/site/src/pages/[...framework]/examples/_Input/svelte/Component.svelte b/site/src/pages/[...framework]/examples/_Input/svelte/Component.svelte index 3af44c96..bd2f21dd 100644 --- a/site/src/pages/[...framework]/examples/_Input/svelte/Component.svelte +++ b/site/src/pages/[...framework]/examples/_Input/svelte/Component.svelte @@ -25,7 +25,7 @@ const num = parseInt(input.value) if (!isNaN(num) && min <= num && num <= max) next = num } - // Manually update the input.value in case the number stays the same i.e. 09 == 9 + // Manually update the input.value in case the number stays the same e.g. 09 == 9 input.value = String(next) value = next } diff --git a/site/src/pages/[...framework]/examples/_Input/vue/Component.vue b/site/src/pages/[...framework]/examples/_Input/vue/Component.vue index 0fb5e70e..5145a684 100644 --- a/site/src/pages/[...framework]/examples/_Input/vue/Component.vue +++ b/site/src/pages/[...framework]/examples/_Input/vue/Component.vue @@ -27,7 +27,7 @@ function handleInput({ currentTarget }: Event) { const num = parseInt(input.value) if (!isNaN(num) && min <= num && num <= max) next = num } - // Manually update the input.value in case the number stays the same i.e. 09 == 9 + // Manually update the input.value in case the number stays the same e.g. 09 == 9 input.value = String(next) modelValue.value = next }