Skip to content

Form validation doesn't check for validity #7

@JoshKamps

Description

@JoshKamps

Hello, was just following along with the tutorial when I noticed I could still submit a non-alphanumeric username. Should this not be like so:

{#if isAvailable && isValid} <button class="btn btn-success">Confirm username @{username} </button> {/if}

or am I missing something?

https://github.com/fireship-io/fkit-course/blob/ce1b40a030c5461ba4e449a2c45eae6fdfcb4543/src/routes/login/username/%2Bpage.svelte#L101C9-L103C14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions