8
0
Quellcode durchsuchen

Add #withArrow param to DropdownButtonView

panr vor 6 Jahren
Ursprung
Commit
0fd29d38db
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      packages/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js

+ 5 - 1
packages/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js

@@ -53,6 +53,8 @@ export default class DropdownButtonView extends ButtonView {
 			}
 		} );
 
+		this.withArrow = true;
+
 		// The DropdownButton interface expects the open event upon which will open the dropdown.
 		this.delegate( 'execute' ).to( this, 'open' );
 	}
@@ -63,7 +65,9 @@ export default class DropdownButtonView extends ButtonView {
 	render() {
 		super.render();
 
-		this.children.add( this.arrowView );
+		if ( this.withArrow ) {
+			this.children.add( this.arrowView );
+		}
 	}
 
 	/**