Skip to content

[BUG] First example in the documentation does not work #95

@alexspurling

Description

@alexspurling

In the first example in the documentation of a simple form, the input field is considered to be valid on first load even though no value exists in the field.

I have slightly adapted the first example to demonstrate the problem:

https://svelte.dev/repl/7aca3afc2c374c7e9c143e773fbdc0ef?version=3.53.1

I would expect the form to show "Form valid: false". Instead it says "Form valid: true"

Screenshot from 2022-11-18 10-17-35

I am using version 2.3.1 of svelte-forms.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions