Skip to content

Commit

Permalink
Fix WordPress#22892 and print classnames in spacer block on editor side
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc authored and mkaz committed Oct 19, 2020
1 parent 891482c commit ccc6057
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/spacer/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const SpacerEdit = ( {
setAttributes,
onResizeStart,
onResizeStop,
className,
} ) => {
const [ isResizing, setIsResizing ] = useState( false );
const { height } = attributes;
Expand Down Expand Up @@ -52,6 +53,7 @@ const SpacerEdit = ( {
<View { ...useBlockProps() }>
<ResizableBox
className={ classnames(
className,
'block-library-spacer__resize-container',
{
'is-selected': isSelected,
Expand Down

0 comments on commit ccc6057

Please sign in to comment.