From a160236b691eb899fcb8ba320efa002b8b66865c Mon Sep 17 00:00:00 2001 From: PRASAD KARMALKAR Date: Thu, 26 Dec 2024 11:15:29 +0530 Subject: [PATCH] Fix data attribute --- packages/block-library/src/table/block.json | 1 + packages/block-library/src/table/save.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/table/block.json b/packages/block-library/src/table/block.json index 27dc5d38703986..15e66ac2671ff8 100644 --- a/packages/block-library/src/table/block.json +++ b/packages/block-library/src/table/block.json @@ -19,6 +19,7 @@ "alignAllColumns": { "type": "string", "source": "attribute", + "selector": "table", "attribute": "data-align-all-columns" }, "head": { diff --git a/packages/block-library/src/table/save.js b/packages/block-library/src/table/save.js index 1d24a7d7975cc2..db6e694b7eb45d 100644 --- a/packages/block-library/src/table/save.js +++ b/packages/block-library/src/table/save.js @@ -69,9 +69,6 @@ export default function save( { attributes } ) { : undefined } data-align={ align } - data-align-all-columns={ - attributes.alignAllColumns - } tagName={ tag } value={ content } key={ cellIndex } @@ -95,6 +92,7 @@ export default function save( { attributes } ) {