In my Mentions plugin (created using getMentionsPlugin), when getting suggestions, my code calls the done callback with an empty list to indicate no matching suggestions, but this causes a crash in mentionPlugin.js:addClassAtIndex ("prevItem is undefined" due to there being no matching element).
The patch below adds a simple check to addClassAtIndex to fix this issue, and also in related function removeClassAtIndex.
In my Mentions plugin (created using
getMentionsPlugin
), when getting suggestions, my code calls thedone
callback with an empty list to indicate no matching suggestions, but this causes a crash inmentionPlugin.js:addClassAtIndex
("prevItem is undefined" due to there being no matching element).The patch below adds a simple check to
addClassAtIndex
to fix this issue, and also in related functionremoveClassAtIndex
.prosemirror.patch.txt