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

Add "disabled" flag for forms #538

Closed
djmattyg007 opened this issue Jul 18, 2021 · 1 comment · Fixed by #608
Closed

Add "disabled" flag for forms #538

djmattyg007 opened this issue Jul 18, 2021 · 1 comment · Fixed by #608
Labels
feature request New feature or request

Comments

@djmattyg007
Copy link

This function solves the problem (这个功能解决的问题)

When a form is submitted, it is a good idea to disable all inputs to prevent the user from making changes that won't take effect. Right now, this must be done for each form field individually.

Expected API (期望的 API)

<n-form> should have a disabled prop that will automatically disable all fields inside that form when set to true.

@github-actions github-actions bot added the feature request New feature or request label Jul 18, 2021
@07akioni
Copy link
Collaborator

I think it's a reasonable idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants