Error in 6.3 with blocks
-
Hi, I have an extend option for blocks that allow add some classes to blocks to animated them. This functionality works fine in 6.2 and previous versions.
In 6.3 I getting the next error in block with render.php: Error loading block: Invalid parameter(s): attributes. Whit others block works normally.
Here my code where error is:
export const attributesToAdd = { animate: { type: 'string', default: '', }, delay: { type: 'string', default: '', } }; /* Add attributes to block attributes. */ const addClassAttributes = (settings) => { return{ ...settings, attributes:{ ...settings.attributes, ...attributesToAdd } } } addFilter('blocks.registerBlockType', 'jupa-bs/animate/list-block', addClassAttributes);
Thanks for any help or advice.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error in 6.3 with blocks’ is closed to new replies.