fritx / vue-at

At.js for Vue.
https://fritx.github.io/vue-at/
MIT License
529 stars 114 forks source link

Is there a way to get the current text value? #41

Closed rap2hpoutre closed 5 years ago

rap2hpoutre commented 6 years ago

Assuming my code is:

<at-ta :members="members" :filter-match="filterMatch">
  <textarea class="editor" v-text="content"></textarea>
</at-ta>

It seems the text value does not change when I type. Is there a way to get the current value of the textarea?

fritx commented 6 years ago

@rap2hpoutre you had to use v-model("two-way" binding) instead of v-text(one way), as you expected, however, vue-at doesn't support v-model quite well, related: https://github.com/fritx/vue-at/issues/22#issuecomment-338363789, #38

fritx commented 6 years ago

@rap2hpoutre PR #38 is in progress, textarea could support v-model soon.