File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Catalog/view/frontend/web/js
Customer/view/frontend/web/js Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ define([
19
19
$ ( document ) . on ( 'submit' , function ( event ) {
20
20
var sections ;
21
21
22
- if ( event . target . method . match ( / p o s t | p u t | d e l e t e / i) ) {
22
+ if ( event . target . hasAttribute ( ' method' ) && event . target . getAttribute ( 'method' ) . match ( / p o s t | p u t | d e l e t e / i) ) {
23
23
sections = sectionConfig . getAffectedSections ( event . target . action ) ;
24
24
25
25
if ( sections && window . localStorage ) {
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ define([
429
429
$ ( document ) . on ( 'submit' , function ( event ) {
430
430
var sections ;
431
431
432
- if ( event . target . method . match ( / p o s t | p u t | d e l e t e / i) ) {
432
+ if ( event . target . hasAttribute ( ' method' ) && event . target . getAttribute ( 'method' ) . match ( / p o s t | p u t | d e l e t e / i) ) {
433
433
sections = sectionConfig . getAffectedSections ( event . target . action ) ;
434
434
435
435
if ( sections ) {
You can’t perform that action at this time.
0 commit comments