Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Make Product Categories List links unclickable in the editor (#4339)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Jun 15, 2021
1 parent fa17c47 commit 43d6b86
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions assets/js/blocks/product-categories/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import { __ } from '@wordpress/i18n';
import { InspectorControls } from '@wordpress/block-editor';
import ServerSideRender from '@wordpress/server-side-render';
import PropTypes from 'prop-types';
import { PanelBody, ToggleControl, Placeholder } from '@wordpress/components';
import {
Disabled,
PanelBody,
ToggleControl,
Placeholder,
} from '@wordpress/components';
import { Icon, list } from '@woocommerce/icons';
import ToggleButtonControl from '@woocommerce/editor-components/toggle-button-control';

Expand Down Expand Up @@ -181,11 +186,13 @@ const ProductCategoriesBlock = ( { attributes, setAttributes, name } ) => {
return (
<>
{ getInspectorControls() }
<ServerSideRender
block={ name }
attributes={ attributes }
EmptyResponsePlaceholder={ EmptyPlaceholder }
/>
<Disabled>
<ServerSideRender
block={ name }
attributes={ attributes }
EmptyResponsePlaceholder={ EmptyPlaceholder }
/>
</Disabled>
</>
);
};
Expand Down

0 comments on commit 43d6b86

Please sign in to comment.