Skip to content

Commit f3c3f7e

Browse files
committed
SwiftOtter-SOP-348 Fix issues with Customer Data when form contains element with name method
1 parent 3428ebc commit f3c3f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/view/frontend/web/js/customer-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ define([
429429
$(document).on('submit', function (event) {
430430
var sections;
431431

432-
if (event.target.method.match(/post|put|delete/i)) {
432+
if (event.target.hasAttribute('method') && event.target.getAttribute('method').match(/post|put|delete/i)) {
433433
sections = sectionConfig.getAffectedSections(event.target.action);
434434

435435
if (sections) {

0 commit comments

Comments
 (0)