You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: