Skip to content

Commit

Permalink
Add toggleProps prop to AspectMenu component
Browse files Browse the repository at this point in the history
  • Loading branch information
diegohaz committed Sep 10, 2020
1 parent 35c46da commit 191e228
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/block-library/src/image/image-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,19 @@ function AspectGroup( { aspectRatios, isDisabled, label, onClick, value } ) {
);
}

function AspectMenu( { isDisabled, onClick, value, defaultValue } ) {
function AspectMenu( {
toggleProps,
isDisabled,
onClick,
value,
defaultValue,
} ) {
return (
<DropdownMenu
icon={ aspectRatioIcon }
label={ __( 'Aspect Ratio' ) }
popoverProps={ POPOVER_PROPS }
toggleProps={ toggleProps }
className="wp-block-image__aspect-ratio"
>
{ ( { onClose } ) => (
Expand Down

0 comments on commit 191e228

Please sign in to comment.