Describe the bug
When calling fields.name.as('text', 'default'), the input_value was used as a display fallback in the returned props but was never accessible to fields.name.value(), which returned undefined until the user interacted with the input.
Reproduction
https://www.sveltelab.dev/530x094ll7628a9
<form {...test_form}>
// displays 'default text'
<input {...test_form.fields.name.as('text', 'default text')} />
// not displaying 'default text'
<p>{test_form.fields.name.value()}</p>
</form>
Logs
System Info
System:
OS: Linux 5.0 undefined
CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
Binaries:
Node: 22.22.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.8.2 - /usr/local/bin/npm
pnpm: 8.15.6 - /usr/local/bin/pnpm
npmPackages:
@sveltejs/adapter-auto: ^3.0.0 => 3.3.1
@sveltejs/kit: ^2.57.1 => 2.57.1
@sveltejs/vite-plugin-svelte: ^5.0.0 => 5.1.1
svelte: ^5.55.1 => 5.55.1
vite: ^6.0.0 => 6.4.1
Severity
annoyance
Additional Information
No response
Describe the bug
When calling
fields.name.as('text', 'default'), theinput_valuewas used as a display fallback in the returned props but was never accessible tofields.name.value(), which returnedundefineduntil the user interacted with the input.Reproduction
https://www.sveltelab.dev/530x094ll7628a9
Logs
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 22.22.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.8.2 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: @sveltejs/adapter-auto: ^3.0.0 => 3.3.1 @sveltejs/kit: ^2.57.1 => 2.57.1 @sveltejs/vite-plugin-svelte: ^5.0.0 => 5.1.1 svelte: ^5.55.1 => 5.55.1 vite: ^6.0.0 => 6.4.1Severity
annoyance
Additional Information
No response