Problem/Motivation

AjaxAddToCartForm->actions() we are adding attribute use-ajax-submit, this allows Drupal to treat the submit action as ajax. Ideally Drupal should add the required core/jquery.form and core/drupal.ajax libraries by itself, but it is not happening.

The issue is also reported to the core #2897120: use-ajax-submit does not includes core/jquery.form library to the form

Proposed resolution

Fix #2897120: use-ajax-submit does not includes core/jquery.form library to the form. And update the code inside AjaxAddToCartForm->buildForm().

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Comments

subhojit777 created an issue. See original summary.

subhojit777’s picture

Assigned: Unassigned » subhojit777
subhojit777’s picture

  • subhojit777 committed 130130b on 8.x-1.x
    Issue #2915365 by subhojit777: Do not add drupal.ajax and jQuery.form...
subhojit777’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.