Comment

Comment by iza

Considering it still needs javascript, this trick seems massively overcomplicated compared to the following:

  <textarea oninput="this.style.height = 0; this.style.height = this.scrollHeight + 'px'"></textarea>
(Yes this forces an extra reflow but it likely won't matter)
parent iza 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton