kitconcept / volto-light-theme

https://light-theme.kitconcept.io
11 stars 8 forks source link

Image / Caption "Warning: validateDOMNesting(...): <p> cannot appear as a descendant of <p>." #404

Open lenadax opened 2 months ago

lenadax commented 2 months ago

Upon providing an Image Block with a Caption containing a Description, the following Warning occurs in the browser console:

Warning: validateDOMNesting(...): <p> cannot appear as a descendant of <p>.

The related Caption Block in 'Caption.js' will indeed render a <p> element within another <p> element, which leads to an immense slowing of the rendering of the entire page (at least locally).

iRohitSingh commented 2 months ago

@lenadax We already have issues: https://github.com/kitconcept/volto-light-theme/issues/398 . Now it's merged.

wait for next release . Thanks!