Explorar o código

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

Aleksander Nowodzinski %!s(int64=8) %!d(string=hai) anos
pai
achega
5bd98fec0e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()
 		} );
 	}