We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
method
1 parent f3c3f7e commit 15a82d8Copy full SHA for 15a82d8
app/code/Magento/Catalog/view/frontend/web/js/storage-manager.js
@@ -19,7 +19,7 @@ define([
19
$(document).on('submit', function (event) {
20
var sections;
21
22
- if (event.target.method.match(/post|put|delete/i)) {
+ if (event.target.hasAttribute('method') && event.target.getAttribute('method').match(/post|put|delete/i)) {
23
sections = sectionConfig.getAffectedSections(event.target.action);
24
25
if (sections && window.localStorage) {
0 commit comments