8
0
Pārlūkot izejas kodu

Add #withArrow param to DropdownButtonView

panr 6 gadi atpakaļ
vecāks
revīzija
0fd29d38db

+ 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 );
+		}
 	}
 
 	/**