From 0f2418925ca1cd8ab8974aba7bbed06482f82e9e Mon Sep 17 00:00:00 2001 From: Sebastian Dimunzio Date: Fri, 26 Jun 2026 16:29:22 -0300 Subject: [PATCH 1/9] removing query string parameters on edit mode --- .../blocks/tabbed-posts/BlockEdit.js | 20 ++++---- .../blocks/tabbed-posts/BlockSave.js | 7 +-- .../blocks/tabbed-posts/index.js | 49 ++++++++++++++++++- 3 files changed, 58 insertions(+), 18 deletions(-) diff --git a/plugins/wp-react-blocks-plugin/blocks/tabbed-posts/BlockEdit.js b/plugins/wp-react-blocks-plugin/blocks/tabbed-posts/BlockEdit.js index 05b8c51ad..31d82ab5f 100644 --- a/plugins/wp-react-blocks-plugin/blocks/tabbed-posts/BlockEdit.js +++ b/plugins/wp-react-blocks-plugin/blocks/tabbed-posts/BlockEdit.js @@ -18,6 +18,7 @@ class BlockEdit extends BlockEditWithFilters { if (newPreviewMode !== prevState.previewMode) { this.props.setAttributes({previewMode: newPreviewMode}); } + super.componentDidUpdate(prevProps, prevState, snapshot); } render() { @@ -27,7 +28,7 @@ class BlockEdit extends BlockEditWithFilters { setAttributes, attributes: { panelStatus, - count, + items, type, taxonomy, categories, @@ -35,14 +36,11 @@ class BlockEdit extends BlockEditWithFilters { theme, useScrolls, showIcons, - useLabels, + showLabels, previewMode }, } = this.props; - - - const queryString = `editing=true&data-type=${type}&data-taxonomy=${taxonomy}&data-categories=${categories}&data-items=${count}&data-height=${height}&data-theme=${theme}&data-show-icons=${showIcons}&data-show-labels=${useLabels}&data-use-scrolls=${useScrolls}&data-preview-mode=${previewMode}` const divStyles = {height: `${height}px`, width: '100%'} return (
@@ -60,8 +58,8 @@ class BlockEdit extends BlockEditWithFilters {

{__("Use Labels","dg")}

setAttributes({useLabels: !useLabels})} + checked={showLabels} + onChange={() => setAttributes({showLabels: !showLabels})} />
@@ -83,8 +81,8 @@ class BlockEdit extends BlockEditWithFilters { setAttributes({count})} + value={items} + onChange={(items) => setAttributes({items})} min={2} max={10}/> @@ -122,8 +120,8 @@ class BlockEdit extends BlockEditWithFilters { toggleSelection(false); }}>
- {this.state.react_ui_url&&