Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Initilize alignment controls so the button states can be rendered
  • Loading branch information
tiny-james committed Jun 5, 2017
commit c49d9a1af4db17fc85e66c5527087bdfd86bfd3e
4 changes: 2 additions & 2 deletions blocks/library/freeform/freeform-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* External dependencies
*/
import { nodeListToReact } from 'dom-react';
import { isEqual, omitBy } from 'lodash';
import { concat, isEqual, omitBy } from 'lodash';

/**
* Internal dependencies
Expand Down Expand Up @@ -122,7 +122,7 @@ export default class FreeformBlock extends wp.element.Component {
}

onInit() {
FREEFORM_CONTROLS.forEach( ( control ) => {
concat( ALIGNMENT_CONTROLS, FREEFORM_CONTROLS ).forEach( ( control ) => {
if ( control.id ) {
const button = this.editor.buttons[ control.id ];
button.onPostRender.call( {
Expand Down