8
0
فهرست منبع

Hide mention ui panel when no items in list.

Maciej Gołaszewski 6 سال پیش
والد
کامیت
ee2c4a323b
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      packages/ckeditor5-mention/src/mentionui.js

+ 5 - 1
packages/ckeditor5-mention/src/mentionui.js

@@ -126,7 +126,11 @@ export default class MentionUI extends Plugin {
 				items.add( { label: item } );
 			}
 
-			this._showForm();
+			if ( items.length ) {
+				this._showForm();
+			} else {
+				this._hideForm();
+			}
 		} );
 
 		watcher.on( 'unmatched', () => {