Skip to content

Commit

Permalink
Disable clicking on links in the tag cloud block (#47338)
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan authored and mburridge committed Jan 23, 2023
1 parent e593bf4 commit b9d1126
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/block-library/src/tag-cloud/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
__experimentalUnitControl as UnitControl,
__experimentalUseCustomUnits as useCustomUnits,
__experimentalParseQuantityAndUnitFromRawValue as parseQuantityAndUnitFromRawValue,
Disabled,
} from '@wordpress/components';
import { withSelect } from '@wordpress/data';
import { __ } from '@wordpress/i18n';
Expand Down Expand Up @@ -169,11 +170,13 @@ function TagCloudEdit( { attributes, setAttributes, taxonomies } ) {
<>
{ inspectorControls }
<div { ...useBlockProps() }>
<ServerSideRender
skipBlockSupportAttributes
block="core/tag-cloud"
attributes={ attributes }
/>
<Disabled>
<ServerSideRender
skipBlockSupportAttributes
block="core/tag-cloud"
attributes={ attributes }
/>
</Disabled>
</div>
</>
);
Expand Down

0 comments on commit b9d1126

Please sign in to comment.