fritx / vue-at

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

close textarea panel if empty of text #59

Closed MaciejKus closed 6 years ago

MaciejKus commented 6 years ago

This removes the panel if there is no text for a textarea div.

As you can see in the example page at https://fritx.github.io/vue-at/#/en/vmodel if you have the panel open, then select all the text with the mouse and then hit delete the panel closes for the contenteditable example, but not the textarea example.

fritx commented 6 years ago

@MaciejKus cool ! Good catch!

Would be better we add a prop to config the tab behavior. At.js does it!

However, I've tried Wechat and QQ (which are popular IM apps in China), they don't, looks people in Asia dont have such convention?