Skip to content

Commit

Permalink
Fix inspector controls
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitbohra committed May 1, 2018
1 parent 82c343d commit 3feae91
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

All notable changes to "Block Background" will be documented here

***v1.0.1***

Released on Released on 1th May

- Make compatible with Gutenberg 2.7

***v1.0.0***

Expand Down
4 changes: 2 additions & 2 deletions block-background.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
* Description: Extend gutenberg blocks with additional background options
* Author: LUBUS
* Author URI: https://lubus.in
* Version: 1.0
* Version: 1.0.1
* Text Domain: blockbg
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/lubusIN/block-background
* Tags: gutenberg, block, background, image, gradient
* Requires at least: 3.0.1
* Tested up to: 4.9.4
* Stable tag: 1.0
* Stable tag: 1.0.1
* License: GPLv3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://www.lubus.in
Tags: gutenberg, block, background, image, gradient
Requires at least: 3.0.1
Tested up to: 4.9.4
Stable tag: 1.0
Stable tag: 1.0.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -46,6 +46,12 @@ If you have any suggestions/Feature request that you would like to see in the up

== Changelog ==

***v1.0.1***

Released on 1st May

- Make compatible with Gutenberg 2.7

***v1.0***

Released on 5th April
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const withInspectorControl = createHigherOrderComponent( ( BlockEdit ) => {
return ( props ) => {
return (
<Fragment>
<Inspector { ... { ...props } } />
{ props.isSelected && <Inspector { ... { ...props } } /> }
<BlockEdit { ...props } />
</Fragment>
);
Expand Down

0 comments on commit 3feae91

Please sign in to comment.