diff --git a/src/lib/FracInput.svelte b/src/lib/FracInput.svelte index ef20b79..4f70377 100644 --- a/src/lib/FracInput.svelte +++ b/src/lib/FracInput.svelte @@ -70,8 +70,8 @@ value={focused ? rawValue : displayValue} bind:this={input} {required} - oninput={() => { - rawValue = input.value + oninput={(e) => { + rawValue = e.currentTarget.value }} onfocus={() => { focused = true