-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[BUG] #647 : Implement height adjustment for textarea on mount #649
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
Conversation
@Red-Hide is attempting to deploy a commit to the dottle's projects Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for GitHub.
💡 Enable Vercel Agent with $100 free credit for automated AI reviews |
Add useEffect to adjust textarea height on mount Issue : drawdb-io#647
e1d0286
to
75b5896
Compare
src/components/EditorCanvas/Note.jsx
Outdated
textarea.style.height = textarea.scrollHeight + "px"; | ||
const newHeight = textarea.scrollHeight + 42; | ||
updateNote(data.id, { height: newHeight }); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a dependency array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thank you
Simple quick fix for #647 to adjust notes textarea on mount.