Skip to content

Commit 058867b

Browse files
t-hamanoclaude
andcommitted
Tabs: Remove redundant lock attributes from TABS_TEMPLATE
The parent `useInnerBlocksProps` already sets `templateLock: 'all'`, which cascades to descendants and prevents removal/insertion/move. The per-child `lock: { remove: true }` entries were therefore no-ops. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 59b17fe commit 058867b

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

  • packages/block-library/src/tabs

packages/block-library/src/tabs/edit.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,15 @@ const EMPTY_ARRAY = [];
2121
const TABS_TEMPLATE = [
2222
[
2323
'core/tabs-menu',
24-
{
25-
lock: {
26-
remove: true,
27-
},
28-
},
24+
{},
2925
[
3026
[ 'core/tabs-menu-item', {} ],
3127
[ 'core/tabs-menu-item', {} ],
3228
],
3329
],
3430
[
3531
'core/tab-panel',
36-
{
37-
lock: {
38-
remove: true,
39-
},
40-
},
32+
{},
4133
[
4234
[
4335
'core/tab',

0 commit comments

Comments
 (0)