Textarea Slots in Vue Components
by Liam Hammett · 3 minute read · #vue
If you’ve ever tried to build a custom component to wrap around the <textarea>
element with Vue, you’ll find that it’s not as simple as you first think to keep the behaviour the same as the native element.
In this post I’m going to quickly show the problem that you’ll likely run into, and a simple solution for it.
Let’s take a look…