Repository navigation
fix: fill the editor input area with the textarea - #713
Merged
Merged
Conversation
|
@snowyukitty is attempting to deploy a commit to the kenny wong's projects Team on Vercel. A member of the Team first needs to authorize it. |
github-actions Bot
added a commit
that referenced
this pull request
Oct 20, 2026
Co-authored-by: snowyukitty <[email protected]> 6c22730
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #700.
With short content and a fixed editor height, the inline
minHeightleaves the text layer shorter than the input pane. For example,height={408}gives a 379px input pane but only a 100px textarea. Clicking the blank lower area does not focus the editor, and the cursor changes to an arrow.Make the input pane a column flex container and let the text layer grow without shrinking. This fills the editable area while preserving natural content height, scrolling, and the minimum height used by auto-height editors (#589).
The existing LESS variable declaration is also formatted to satisfy Prettier; its compiled CSS is unchanged.
Validation:
CI=true npm test -- --runInBand- 56 tests passed.npm run build --workspace @uiw/react-md-editor- passed.npx --no-install prettier --check core/src/components/TextArea/index.less- passed.To reproduce, render
<MDEditor height={408} preview="edit" value="Hello" />, then click near the bottom of the input pane and type. The patched version focuses the textarea and inserts the character; the original hits the surroundingdiv.