You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to set a "max-height" for the text area? For example, I want to be able to set a max-height of 300px on the text-area, so that when the user hits that 300px mark and they press the enter key, it won't let them drop down any below that height.
The text was updated successfully, but these errors were encountered:
You can just use the max-height css style if you want to allow scrolling. If you want enter to not do anything if that would exceeds the height then you'll have to combine some API listeners and calls. Note this is pretty brittle though since there are many ways for height to change such as applying formatting or text wrapping.
Is there a way to set a "max-height" for the text area? For example, I want to be able to set a max-height of 300px on the text-area, so that when the user hits that 300px mark and they press the enter key, it won't let them drop down any below that height.
The text was updated successfully, but these errors were encountered: