Skip to content

isValid state doesn't changed in mui material Dialog #7663

Discussion options

You must be logged in to vote

I believe, it's something got to do with the <Dialog /> modal portal, that messes up the child components update on the form's state change in the Context.
I'd suggest to move your form initialization inside the <Dialog /> with the rest of your form. See this CSB for example

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ArtemEkzarho
Comment options

@Moshyfawn
Comment options

Answer selected by ArtemEkzarho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants