Skip to content

[6.x]: {% js %} blocks do not execute within custom plugin widgets. #19088

Description

@vnali

What happened?

Description

i noticed that {% js %} blocks in widget Twig templates that worked in Craft 5 no longer execute for custom plugin widgets in Craft 6.

Example:

{% js %}
    alert('test');
{% endjs %}

Expected behavior

the script should be registered/executed

Craft CMS version

6.0.0-alpha.6

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions