fritx / vue-at

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

At panel can open with results triggered externally from the node it is wrapping #142

Open rhysburnie opened 2 years ago

rhysburnie commented 2 years ago

In rare cases it's possible to trigger handleInput via the watch of members from a node external to the one wrapped by the At instance.

The happened in the following scenario:

To resolve this issue the following logic was added

In theory this could happen at any time an update to members occurs and the range gets creating from a node external to the one the instance is wrapping and happens to have a sting containing a mention like pattern.