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

fix: enable input editing in the dialog demo #1428

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

wangyedev
Copy link
Contributor

The dialog demo displays a warning message in development mode, as shown in the following.

"Warning: You provided a value prop to a form field without an onChange handler. This will render a read-only field. If the field should be mutable use defaultValue. Otherwise, set either onChange or readOnly."

Screenshot 2023-09-02 at 15 13 55

Additionally, it renders the input fields "name" and "username" uneditable. This PR aims to address the warning and make these inputs editable.

Screenshot 2023-09-02 at 15 16 45

@vercel
Copy link

vercel bot commented Sep 2, 2023

@yportfolio is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Collaborator

@shadcn shadcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@vercel
Copy link

vercel bot commented Sep 18, 2023

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

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2023 1:33pm

@shadcn shadcn merged commit ccb2d69 into shadcn-ui:main Sep 18, 2023
5 checks passed
lloydrichards pushed a commit to lloydrichards/shadcn-ui that referenced this pull request Oct 3, 2023
kjxbyz pushed a commit to muse-ui/muse-ui that referenced this pull request Jun 7, 2024
artabr pushed a commit to artabr/shadcn-ui that referenced this pull request Dec 15, 2024
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.

2 participants