fritx / vue-at

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

Hiding the mentioned people #79

Open Jalibk001 opened 5 years ago

Jalibk001 commented 5 years ago

I wanted to ask if it is possible to manually hide the ul/li tag without clicking or pressing enter

fritx commented 5 years ago

Hiding the mentioned people

Did you mean to filter out the already mentioned people from the suggestions?

perez816k commented 5 years ago

With textarea, if you remove @ doesnt hide the members. Any way to hide it after remove the character?

Edit: this only occurs when write @ as first caracter.

fritx commented 5 years ago

@perez816k which browser? I couldn't reproduce it in latest Chrome

perez816k commented 5 years ago

@fritx thats happens on chrome (Versión 66.0.3359.170 (Build oficial) (64 bits)) and firefox (63.0.3 (64-bit))

Solved: I just have v-model in wrong element, but first '@' still happening Another issue, when y press Enter key to select a user and click Send buttom inmediately, I see the username in textarea but the modal doesnt take the value, so sends only the '@' character. When you press enter to select a user and you continue writing in textarea, works fine, but you should to press some key after insert a member.

perez816k commented 5 years ago

if you write the '@' as first character on textarea, the users box will appear, but if you remove the '@' character, the box with users to mention, doesnt disappear. Thats only happen when you write the @ as first character on a textarea

fritx commented 5 years ago

if you write the '@' as first character on textarea, the users box will appear, but if you remove the '@' character, the box with users to mention, doesnt disappear. Thats only happen when you write the @ as first character on a textarea

@perez816k Oops it did ! Worth a look in it.

fritx commented 5 years ago
-  "version": "2.4.0-beta",
+  "version": "2.5.0-beta.1",

I just tested it in /docs, and found that when I upgraded vue-at to 2.5.0-beta.1 from 2.4.0-beta the bug had gone. Seems it had been fixed by https://github.com/fritx/vue-at/commit/da049f7e8073c9b1f5e4adfb7a2dbb7e72bfefa0 on 27, Apr.

@perez816k try 2.5.0, and I would upgrade the docs as well.