Andarist / react-textarea-autosize

<textarea /> component for React which grows with content

Home Page:http://andarist.github.io/react-textarea-autosize/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to turn off autosizing

tilden opened this issue · comments

One of my uses of this component involves a "full screen" editor toggle that expands the autosizing text area to a larger, fixed height. When in this mode, I no longer want the text area to automatically resize. Is there a chance an enabled prop could be added allowing me to dynamically turn off the resizing function if needed? Thanks!

You could set minRows and maxRows to the same value, or replace the textarea