don't update a focused input (may need to add a blur handler later, we'll see)

pull/16197/head
Rich Harris 5 months ago
parent 94a4b114fd
commit ab0ec6f7fd

@ -64,6 +64,10 @@ export function bind_value(input, get, set = get) {
var value = get();
if (input === document.activeElement) {
return;
}
if (is_numberlike_input(input) && value === to_number(input.value)) {
// handles 0 vs 00 case (see https://github.com/sveltejs/svelte/issues/9959)
return;

Loading…
Cancel
Save