- Issue created by @thomas.frobieter
Okay, got it. The drowl_paragraphs/admin library is not (only) loaded by drowl_layouts, it's loaded by drowl_paragraphs:
function drowl_paragraphs_preprocess_paragraph(&$variables) { // Add frontend library for paragraphs display: $variables['#attached']['library'][] = 'drowl_paragraphs/global'; // Add backend library if paragraph is in preview view mode. if (!empty($variables['view_mode']) && $variables['view_mode'] == 'preview') { $variables['#attached']['library'][] = 'drowl_paragraphs/admin'; } }
This is 100% correct. We attach it to the paragraph, if the view_mode is 'preview'.
In this specific case, the layout_builder page is overridden, while the paragraphs field is set to view_mode 'default'. So this is also correct. I consider a layout_builder bug.
- 🇩🇪Germany Anybody Porta Westfalica
@thomas.frobieter: Found it! Isn't a bug in any module, but a misconfiguration on that page:
/admin/structure/paragraphs_type/container_tabs_accordion/display
"Preview" view mode was selected for the tabs reference!
- Status changed to Closed: cannot reproduce
8 months ago 4:09pm 30 January 2024