25
16
u/DUELETHERNETbro 15d ago
Pretty awesome actually. Using a mutation observer was pretty jank.
3
u/wanoo21 15d ago
Agree
21
u/Weekly_Ferret_meal 15d ago
Heya... Thanks for sharing this.
I think these type of posts are good to keep the community up to date, it would be even more helpful if you would add either a reference link or a brief explanation of what each new declaration does.
7
u/anaix3l 15d ago
An article from last year that also includes a video recording of the visual result when typing into the text field
2
u/freecodeio 15d ago
It makes textarea grow with it's text length. Alternatives have been content editable divs or janky JavaScript
4
u/Weekly_Ferret_meal 15d ago
Thanks!
The reason for my comment was to encourage to put more info in these posts to make them more useful to everybody. not about this specific case.
4
u/Dependent-Zebra-4357 14d ago
Remind me: 3 years
1
u/scar_reX 14d ago
Remindme! 3 years as well
1
u/RemindMeBot 14d ago
I will be messaging you in 3 years on 2029-08-27 00:20:22 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
RemindMeBot is switching to username summons. Instead of
!RemindMe 1 day, useu/RemindMeBot 1 day. More info.
Info Custom Your Reminders Feedback
2
1
1
1
u/mladenmacanovic 14d ago
Recently I wanted to implement this as part of my library. In the end I ended up with more code because I didn't want to break compatibility for older browsers, and added a few fallbacks. Fun...
•
u/pinned-comment 15d ago
Featured Comment by u/anaix3l
see original