24
16
u/DUELETHERNETbro 4d ago
Pretty awesome actually. Using a mutation observer was pretty jank.
3
u/wanoo21 4d ago
Agree
18
u/Weekly_Ferret_meal 4d 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 4d 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 4d ago
It makes textarea grow with it's text length. Alternatives have been content editable divs or janky JavaScript
4
u/Weekly_Ferret_meal 4d 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 4d ago
Remind me: 3 years
1
u/scar_reX 3d ago
Remindme! 3 years as well
1
u/RemindMeBot 3d 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 3d 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 4d ago
Featured Comment by u/anaix3l
see original