update test

pull/3540/head
Richard Harris 5 years ago
parent 6f60ed8871
commit 670fadf260

2
package-lock.json generated

@ -1,6 +1,6 @@
{ {
"name": "svelte", "name": "svelte",
"version": "3.9.2", "version": "3.10.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

@ -10,6 +10,7 @@ import {
noop, noop,
safe_not_equal, safe_not_equal,
set_data, set_data,
set_input_value,
space, space,
text text
} from "svelte/internal"; } from "svelte/internal";
@ -32,7 +33,7 @@ function create_fragment(ctx) {
insert(target, t1, anchor); insert(target, t1, anchor);
insert(target, input, anchor); insert(target, input, anchor);
input.value = ctx.foo; set_input_value(input, ctx.foo);
}, },
p(changed, ctx) { p(changed, ctx) {
@ -40,7 +41,7 @@ function create_fragment(ctx) {
set_data(t0, ctx.foo); set_data(t0, ctx.foo);
} }
if (changed.foo && (input.value !== ctx.foo)) input.value = ctx.foo; if (changed.foo && (input.value !== ctx.foo)) set_input_value(input, ctx.foo);
}, },
i: noop, i: noop,

Loading…
Cancel
Save