Skip to content

disable attribute in Button is no longer valid #13

@hazartilirot

Description

@hazartilirot

According to the Chakra UI's docs there is no disabled attribute in the Button. Its substitute is isDisabled

I would also suggest destructuring formik and extracting the variable of dirty

({isValid, isSubmitting, dirty}) =>

<Button type="submit" isDisabled={ !dirty || !isValid || isSubmitting }>Submit</Button>

The button would be disabled once the page is loaded.

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