Skip to content

Commit f0a5e63

Browse files
author
Stanislav Idolov
authored
ENGCOM-2167: Fix for #8222 #16491
2 parents aa79287 + 977d7e4 commit f0a5e63

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/web/mage/collapsible.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ define([
100100
_processState: function () {
101101
var anchor = window.location.hash,
102102
isValid = $.mage.isValidSelector(anchor),
103-
urlPath = window.location.pathname.replace('.', '');
103+
urlPath = window.location.pathname.replace(/\./g, ''),
104+
state;
104105

105106
this.stateKey = encodeURIComponent(urlPath + this.element.attr("id"));
106107

@@ -113,7 +114,7 @@ define([
113114
}
114115
}
115116
} else if (this.options.saveState && !this.options.disabled) {
116-
var state = this.storage.get(this.stateKey);
117+
state = this.storage.get(this.stateKey);
117118
if (typeof state === 'undefined' || state === null) {
118119
this.storage.set(this.stateKey,this.options.active);
119120
} else if (state === true) {

0 commit comments

Comments
 (0)