Use form attached for javascript settings

Created on 6 December 2016, about 8 years ago
Updated 11 October 2024, 4 months ago

After updating to the last hide_submit version last week we're experiencing javascript errors on some pages. This is because hook_form_alter is only fired on non-cached forms. I'm not sure if this is a quirk of our site or a drupal thing, but I created a patch which replaces drupal_add_js with $form{'#attached'] that fixes the problem for us.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇳🇱Netherlands SpaghettiBolognese

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024