Skip to content

Commit

Permalink
Hooks: Pass valid alignments to rendered align toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Dec 19, 2017
1 parent 7e9f5dd commit 9a2db6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blocks/hooks/align.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export function withToolbarControls( BlockEdit ) {
<BlockAlignmentToolbar
value={ props.attributes.align }
onChange={ updateAlignment }
controls={ validAlignments }
/>
</BlockControls>
),
Expand Down

0 comments on commit 9a2db6e

Please sign in to comment.