Procházet zdrojové kódy

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

Maciej Gołaszewski před 6 roky
rodič
revize
5ae3c7e897
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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;
 
 			if ( hasMention || nodeBefore && nodeBefore.is( 'text' ) && nodeBefore.hasAttribute( 'mention' ) ) {
+				this._hideUIAndRemoveMarker();
+
 				return;
 			}