Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Webform libraries loaded via CDN do not work as expected via Ajax because of #1988968: Drupal.ajax does not guarantee that "add new JS file to page" commands have finished before calling said JS
Steps to reproduce
Create webform block with inputmask with Bigpipe module enabled.
Proposed resolution
Until to core issue is fixed we should change the Webform libraries CDN warning to an error in the Status report (/admin/reports/status).
Remaining tasks
Write patch
Commit patch.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#2 | 3236382-2.patch | 1.8 KB | jrockowitz |
|
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedCan someone please explain the practical impact of this error? Should I just not use AJAX on Webforms, or is it wider than that? Things seem to be working OK, do I actually have to download and install that whole list of libraries?
Thank you.
Comment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedAjax does not work as expected on a webform. This impacts webforms which use Ajax and webforms in blocks loaded via the BigPipe module (which uses Ajax).
Comment #9
chucksimply CreditAttribution: chucksimply commentedThis merge should be reverted. Looks like all the Ajax-related core issues have been fixed.
Comment #10
Liam MorlandHave you tested 6.2.x-dev with this change reverted and confirmed that it now works correctly?
This should be done as a child ticket.