8
0
Просмотр исходного кода

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

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
5ae3c7e897
1 измененных файлов с 2 добавлено и 0 удалено
  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;
 			}