Browse Source

Fixed failing test.

Oskar Wróbel 8 years ago
parent
commit
8aac65bcf3
1 changed files with 1 additions and 1 deletions
  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.
 		if ( isElement( options.target ) ) {
-			target = target;
+			target = options.target;
 		} else if ( isRange( options.target ) ) {
 			target = options.target.commonAncestorContainer;
 		}