AT-UI / at-ui

A fresh and flat UI-Kit specially for desktop application, made with ♥ by Vue.js 2.0 (DEPRECATED)
https://at.aotu.io
MIT License
2.34k stars 231 forks source link

TextArea not working #147

Open sirsquall opened 5 years ago

sirsquall commented 5 years ago

Hi,

I'm using the handleAt function to do a call to retrieve the suggestion, this is working well because I have the mention appearing, but I don't know why, when I hit "enter" or if I click on the suggestion nothing occur, and I have this error in the console:

error

this is my code: <at-ta :hover-select="false" v-model="message" :members="members" @at="handleAt"> <v-textarea :placeholder="placeholder" :error=!!errors.message :error-messages=errors.message ></v-textarea> </at-ta>

I tried the version 2.4 and the version and same result, the data is not updated in the text area.

Thank you, Alcindo

sirsquall commented 5 years ago

I found the issue, in the textarea we need to bind the value like that: <at-ta :hover-select="false" v-model="message" :members="members" @at="handleAt"> <v-textarea :value="message" :placeholder="placeholder" :error=!!errors.message :error-messages=errors.message ></v-textarea> </at-ta>

But now I have one remaining issue, if someone can help me, is the keydown enter didn't work.