Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/355 wp5.8 collapsible block generated anchors issues #364

Merged
2 changes: 1 addition & 1 deletion dist/blocks.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react'), 'version' => '44f9dcda4cfcbf76e6c5');
<?php return array('dependencies' => array('react'), 'version' => 'cf7c07081ea2c5ccd56c');
2 changes: 1 addition & 1 deletion dist/blocks.css.map

Large diffs are not rendered by default.

214 changes: 193 additions & 21 deletions dist/blocks.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/blocks.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style-blocks.css.map

Large diffs are not rendered by default.

22 changes: 12 additions & 10 deletions src/blocks/collapsible-control/collapsible-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,18 @@ registerBlockType( 'bu/collapsible-control', {

<Fragment>
<p {...blockProps}>
<RichText
tagName="button"
className={togglebuttonclasses}
placeholder={ __( 'Toggle Text' ) }
value={ text }
onChange={ ( value ) => setAttributes( { text: value } ) }
formattingControls={ [ 'bold', 'italic' ] }
withoutInteractiveFormatting
keepPlaceholderOnFocus
/>
<button>
<RichText
tagName="span"
className={togglebuttonclasses}
placeholder={ __( 'Toggle Text' ) }
value={ text }
onChange={ ( value ) => setAttributes( { text: value } ) }
formattingControls={ [ 'bold', 'italic' ] }
withoutInteractiveFormatting
keepPlaceholderOnFocus
/>
</button>
</p>
<InspectorControls>
<PanelBody title={ __( 'Control Options' ) }>
Expand Down
Loading