Topic: Textarea not auto resizing when there is default text
itdev pro asked 4 years ago
Pre populating text area with lots of text, that has class md-textarea-auto, the text area does not auto resize to the appropriate size. We are using version 7.2.0. With the following code:
<div class="md-form"> <textarea type="text" id="form7" class="md-textarea md-textarea-auto form-control" mdbInput></textarea> <label for="form7">Auto resizing textarea</label> </div>
Thank you for letting us know about this problem. It should be resolved in next version.
I am using the latest version of the Angular MDB library (10.1.1) and this bug obviously still exists.
When using textarea with auto-resize there still is a vertical scrollbar when the textarea is populated with text on init. After adding text at the end of the initial content, the scrollbar disappears and everything looks like expected.
Is there any update on this?
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.0.0
- Device: Any
- Browser: Any
- OS: Any
- Provided sample code: No
- Provided link: No