Sfoglia il codice sorgente

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

Aleksander Nowodzinski 8 anni fa
parent
commit
5bd98fec0e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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()
 		} );
 	}