The JS library should be attached only to forms but not to other pages

Created on 9 November 2023, about 1 year ago

The JS library should be attached only to forms but not to other pages.

Proposed solution

Attach the JS library in the "hook_form_alter()" instead of the "hook_page_attachments()".

🐛 Bug report
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024