Explorar el Código

Fixed failing test.

Oskar Wróbel hace 8 años
padre
commit
8aac65bcf3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ckeditor5-ui/src/panel/balloon/balloonpanelview.js

+ 1 - 1
packages/ckeditor5-ui/src/panel/balloon/balloonpanelview.js

@@ -185,7 +185,7 @@ export default class BalloonPanelView extends View {
 
 
 		// We need to take HTMLElement related to the target if it is possible.
 		// We need to take HTMLElement related to the target if it is possible.
 		if ( isElement( options.target ) ) {
 		if ( isElement( options.target ) ) {
-			target = target;
+			target = options.target;
 		} else if ( isRange( options.target ) ) {
 		} else if ( isRange( options.target ) ) {
 			target = options.target.commonAncestorContainer;
 			target = options.target.commonAncestorContainer;
 		}
 		}