瀏覽代碼

Internal: Aligned the code to the latest clickOutsideHandler helper API (see ckeditor/ckeditor5-ui#261).

Aleksander Nowodzinski 8 年之前
父節點
當前提交
5bd98fec0e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-link/src/link.js

+ 1 - 1
packages/ckeditor5-link/src/link.js

@@ -220,7 +220,7 @@ export default class Link extends Plugin {
 		clickOutsideHandler( {
 			emitter: this.formView,
 			activator: () => this._balloon.hasView( this.formView ),
-			contextElement: this._balloon.view.element,
+			contextElements: [ this._balloon.view.element ],
 			callback: () => this._hidePanel()
 		} );
 	}