Skip to content

Conversation

@paulwilde
Copy link
Contributor

This adds a BaseControl class which other inspector controls can extend as suggested in #1144 (comment).

This still TODO as I cannot figure out how to call the child renderControl method when extending BaseControl.

@paulwilde paulwilde closed this Jun 13, 2017
@paulwilde paulwilde deleted the add/inspector-base-control branch June 13, 2017 16:57
return (
<div className="blocks-base-control">
{ this.renderControlLabel() }
{ this.renderControl() }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should just replace this.renderControl() by { children }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants