Преглед изворни кода

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

Maciej Gołaszewski пре 6 година
родитељ
комит
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;
 			}