Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset state and set enable form actions for add role sidebar. #20840

Conversation

SantoshPisini
Copy link
Contributor

@SantoshPisini SantoshPisini commented Jan 29, 2024

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Resolves #20839

What is the new behavior?

Using the form action buttons are not disabled & the value is being reset.

Additional context

hasChanges={true} is set to true as to enable form action buttons, and if the user clicks on 'Save' with an empty value, form validation is triggered, hence I feel this is valid as the user will be blocked until they enter a valid value.

create_role_sidebar_fix.webm

@SantoshPisini SantoshPisini requested a review from a team as a code owner January 29, 2024 15:44
Copy link

vercel bot commented Jan 29, 2024

Someone is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@SantoshPisini
Copy link
Contributor Author

@saltcod Please review :)

@SantoshPisini
Copy link
Contributor Author

@encima Is there any tag that I need to add for this PR to review?

@encima
Copy link
Contributor

encima commented Feb 5, 2024

nope, you have done the hard work, we just need to review it!

Copy link

vercel bot commented Feb 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
studio-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2024 1:23pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2024 1:23pm
studio ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2024 1:23pm
studio-self-hosted ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2024 1:23pm
zone-www-dot-com ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2024 1:23pm

@joshenlim joshenlim merged commit ab42f99 into supabase:master Feb 7, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form Actions are disabled in 'Add Role' sidebar
3 participants