fritx / vue-at

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

Multiple issues with firefox #58

Open amrnn90 opened 6 years ago

amrnn90 commented 6 years ago

Hey, thanks for working on this awesome library. I've faced multiple issues when using the embeddedItem slot with firefox:

Problem with deleting.

How to reproduce:

  1. open the demo.
  2. on the second example (that uses custom embeddedItem template), try inserting two mentions.
  3. hit backspace multiple times.

    Current Behavior:

    Only the last mention is deleted, then the cursor gets stuck.

    Expected Behavior:

    Both mentions should be removed.


Problem navigating with arrows

How to reproduce:

  1. open the demo.
  2. on the second example (that uses custom embeddedItem template), insert one mention.
  3. Hit left arrow until the cursor moves to the left side of the mention.
  4. Hit the right arrow multiple times.

    Current Behavior:

    The cursor gets stuck on the left side of the mention.

    Expected Behavior:

    The cursor should move to the right side.

fritx commented 6 years ago

@amrnn really appreciated! Should look into these issues