Skip to content

Commit

Permalink
Block Library: Fix React does not recognize isSelected prop in Comple…
Browse files Browse the repository at this point in the history
…mentaryAreaToggle. (#22967)

* Block Library: Fix React does not recognize isSelected prop in ComplementaryAreaToggle.

* remove isSelected from props
  • Loading branch information
torounit authored Jun 18, 2020
1 parent a561cac commit 8828d9c
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function ComplementaryAreaToggle( {
return (
<ComponentToUse
icon={ selectedIcon && isSelected ? selectedIcon : icon }
isSelected={ isSelected }
onClick={ () => {
if ( isSelected ) {
disableComplementaryArea( scope );
Expand Down

0 comments on commit 8828d9c

Please sign in to comment.