Error in summary block
-
Hi, getting this in console when opening editor (new post):
index.js:2 Block validation: Expected tag name
div, instead saw
ul`.
(anonymous) @ index.js:2
index.js:2 Block validation: Block validation failed foradvanced-gutenberg-blocks/summary
(Object).Expected:
<div class=”wp-block-advanced-gutenberg-blocks-summary”><p class=”wp-block-advanced-gutenberg-blocks-summary__title”>Table of contents</p><div class=”wp-block-advanced-gutenberg-blocks-summary__fold”><svg xmlns=”https://www.w3.org/2000/svg” width=”24″ height=”24″ viewbox=”0 0 24 24″ fill=”none” stroke=”currentColor” stroke-width=”2″ stroke-linecap=”round” stroke-linejoin=”round” class=”feather feather-chevron-up”><polyline points=”18 15 12 9 6 15″></polyline></svg></div><ul role=”directory” class=”wp-block-advanced-gutenberg-blocks-summary__list”><li><a href=”#1-heading”>1 Heading</a><ul></ul></li><li><a href=”#2-another-heading”>2 Another Heading</a><ul><li><a href=”#21-subheading”>2.1 subheading</a><ul></ul></li></ul></li></ul></div>
Actual:
<div class=”wp-block-advanced-gutenberg-blocks-summary”><p class=”wp-block-advanced-gutenberg-blocks-summary__title”>Table of contents</p><ul role=”directory” class=”wp-block-advanced-gutenberg-blocks-summary__list”><li><a href=”#1-heading”>1 Heading</a><ul></ul></li><li><a href=”#2-another-heading”>2 Another Heading</a><ul><li><a href=”#21-subheading”>2.1 subheading</a><ul></ul></li></ul></li></ul></div>`
Running latest version of plugin and wordpress.
Cheers!
- The topic ‘Error in summary block’ is closed to new replies.