Problem/Motivation
When rendering wysiwyg field elements, the following PHP notice is logged/shown:
"PHP message: Uncaught PHP Exception LogicException: "A stray renderRoot() invocation is causing bubbling of attached assets to break."
If this is part of an Ajax response (e.g. editing in a modal), it breaks the JSON and returns a 500 status.
Steps to reproduce
Edit an entity with formatted text in a modal or via Ajax, e.g. Paragraphs editor or media library.
Proposed resolution
Attached patch uses render() instead of renderRoot() - which AFAIK should be used only for the response of a page controller?
Comments