Skip to content

Update LinkEditBlock.tsx#231

Merged
hunghg255 merged 1 commit into
hunghg255:mainfrom
anhgt26:patch-1
May 9, 2025
Merged

Update LinkEditBlock.tsx#231
hunghg255 merged 1 commit into
hunghg255:mainfrom
anhgt26:patch-1

Conversation

@anhgt26
Copy link
Copy Markdown
Contributor

@anhgt26 anhgt26 commented May 9, 2025

fix: prevent controlled-to-uncontrolled input warning in link field

When link is undefined, passing it to an input value causes a React warning about a controlled input becoming uncontrolled. Applied link || "" fallback to ensure the form state always contains valid strings and avoids this issue.

fix: prevent controlled-to-uncontrolled input warning in link field

When `link` is undefined, passing it to an input `value` causes a React warning about a controlled input becoming uncontrolled. Applied `link || ""` fallback to ensure the form state always contains valid strings and avoids this issue.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 9, 2025

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

Name Status Preview Comments Updated (UTC)
reactjs-tiptap-editor ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2025 5:50pm

@hunghg255 hunghg255 merged commit eb3b5bd into hunghg255:main May 9, 2025
2 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.

2 participants