full-stack-professional icon indicating copy to clipboard operation
full-stack-professional copied to clipboard

disable attribute in Button is no longer valid

Open hazartilirot opened this issue 1 year ago • 1 comments

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.

hazartilirot avatar May 06 '23 19:05 hazartilirot

Thank you !

N1cus0r avatar Aug 26 '23 18:08 N1cus0r