Skip to content

Commit 15a82d8

Browse files
committed
SwiftOtter-SOP-348 Fix issues with Storage Manager when form contains element with name method
1 parent f3c3f7e commit 15a82d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/frontend/web/js/storage-manager.js

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

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

2525
if (sections && window.localStorage) {

0 commit comments

Comments
 (0)