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

Auto resize height based on input #220

Closed
fgatti675 opened this issue Aug 5, 2021 · 4 comments
Closed

Auto resize height based on input #220

fgatti675 opened this issue Aug 5, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@fgatti675
Copy link

Hi!
First of. all, thank you for the awesome project!
We have currently integrated it into our CMS https://firecms.co/ and it would make total sense for us to have it automatically
resize based on the input.
Something like this:https://stackoverflow.com/questions/454202/creating-a-textarea-with-auto-resize
Thank you :)

@jaywcjlove jaywcjlove added the enhancement New feature or request label Aug 6, 2021
@jaywcjlove
Copy link
Member

@fgatti675 This feature needs to be developed

@PratikAwaik
Copy link

PratikAwaik commented Sep 18, 2021

I second this feature request. I tried increasing the height dynamically but it was getting ugly.

@imagine10255
Copy link

Is this feature supported?

@jaywcjlove
Copy link
Member

@fgatti675 @PratikAwaik @fgatti675 Upgrade v3.15.0

- onHeightChange?: (value?: number, oldValue?: number, state?: ContextStore) => void;
+ onHeightChange?: (value?: CSSProperties['height'], oldValue?: CSSProperties['height'], state?: ContextStore) => void;
- height?: number;
+ height?: CSSProperties['height'];

⚠️ Dragbar is invalid when height parameter percentage.

<MDEditor
  height="100%"
/>

jaywcjlove added a commit that referenced this issue Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants