Previously, our legacy template block was locked to prevent the users from
removing it. The block could however be removed by erasing the parent, so
this change allows the user to directly remove the block itself.

Also:
Closes woocommerce/woocommerce-blocks#5163
Closes woocommerce/woocommerce-blocks#5109
This commit is contained in:
M. L. Giannotta 2021-11-17 17:15:18 +01:00 committed by GitHub
parent 2b7d906133
commit ae4856b92b
1 changed files with 0 additions and 6 deletions

View File

@ -84,12 +84,6 @@ registerBlockType( 'woocommerce/legacy-template', {
type: 'string', type: 'string',
default: 'any', default: 'any',
}, },
lock: {
type: 'object',
default: {
remove: true,
},
},
}, },
edit: Edit, edit: Edit,
save: () => null, save: () => null,