Przeglądaj źródła

Hide panel on matched text inside other mention when UI is still waiting for a feed.

Maciej Gołaszewski 6 lat temu
rodzic
commit
5ae3c7e897
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      packages/ckeditor5-mention/src/mentionui.js

+ 2 - 0
packages/ckeditor5-mention/src/mentionui.js

@@ -296,6 +296,8 @@ export default class MentionUI extends Plugin {
 			const nodeBefore = focus.nodeBefore;
 			const nodeBefore = focus.nodeBefore;
 
 
 			if ( hasMention || nodeBefore && nodeBefore.is( 'text' ) && nodeBefore.hasAttribute( 'mention' ) ) {
 			if ( hasMention || nodeBefore && nodeBefore.is( 'text' ) && nodeBefore.hasAttribute( 'mention' ) ) {
+				this._hideUIAndRemoveMarker();
+
 				return;
 				return;
 			}
 			}