Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 314117

Component library missing when rendered via Drupal.theme (via JS not via Twig)

$
0
0

Problem/Motivation

Component library is missing when it is not rendered via Twig.

If rendered with Drupal JavaScript API - such as a custom Drupal.theme.myComponent for instance - the component's library is not loaded.

Steps to reproduce

  • Create a single-directory component in a module
  • Render the component programmatically
  • Attach the output in drupalSettings
  • Create a custom Drupal.theme.myComponent function and consume the output
  • Call the Drupal.theme
  • Result: the component Twig is rendered but the library is missing (i.e. no CSS no JS)

Proposed resolution

TBD

Remaining tasks

TBD


Viewing all articles
Browse latest Browse all 314117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>