fritx / vue-at

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

Firefox: cant delete mentions if user blur field and re focuses #123

Open rhysburnie opened 4 years ago

rhysburnie commented 4 years ago

Hi,

In addition to #58 (multiple mentions last wont delete)

If you make any number of mentions in Firefox then blur the field then re focus you cant delete any mentions at all.

Update

I found that there is ongoing bugs in Firefox around this... However while investigating the bug I found a potential hacky fix for this...

See the 2 coment i left here https://bugzilla.mozilla.org/show_bug.cgi?id=685445#c22

You would only want to apply that for firefox and the result would probably be that you'd have to hit delete twice to delete but that seems better than not at all?

fritx commented 4 years ago

Hi, first of all, did you use v-model.trim or trim the input on blur ?

huzjakd commented 3 years ago

I found that this solution https://bugzilla.mozilla.org/show_bug.cgi?id=685445#c10 works best for my case. So instead of having a span within a span (https://github.com/fritx/vue-at#custom-tags) I have a button within a span and have almost no problems in Firefox anymore.