antoniandre / wave-ui

A UI framework for Vue.js 3 (and 2) with only the bright side. ☀️
https://antoniandre.github.io/wave-ui
MIT License
546 stars 41 forks source link

w-textarea does not autogrow (or shrink) when v-model is updated #88

Closed obliojoe closed 2 years ago

obliojoe commented 2 years ago

I have a w-textarea using v-model binding. If I update the model with a long blob of text, the textarea does not autogrow as expected (alternatively, it does not shrink to shorter text content).

After the content is updated, if I focus the textarea and type any character, it will immediately grow or shrink to the correct size.

I also noticed that each time I update the model, it autogrows to the size of the previous content. In the example below you can see this by clicking the button multiple times.

Here is an example of what I am running into (hope IU set this up correctly): https://stackblitz.com/edit/vue-pb2h8t?file=src/App.vue

Thanks!

antoniandre commented 2 years ago

Hi @obliojoe, This is now fixed in version 1.53.2. Please reopen if not solved :)

obliojoe commented 2 years ago

Hi @obliojoe, This is now fixed in version 1.53.2. Please reopen if not solved :)

@antoniandre Thank you so much! But, please pardon my ignorance. I'm running version 2.36.2. Are there 2 different versions?

obliojoe commented 2 years ago

Hi @obliojoe, This is now fixed in version 1.53.2. Please reopen if not solved :)

Hi @antoniandre ... will this be fixed in v3 as well? I'm running 2.36.2 (vue 3) but it looks like this fix was in the legacy version. Thank you!

antoniandre commented 2 years ago

Of course, released in version 2.36.3. :) Your stackblitz works now.

obliojoe commented 2 years ago

Of course, released in version 2.36.3. :) Your stackblitz works now.

It's a thing of beauty. Thanks again.