Skip to content

Commit 977d7e4

Browse files
ENGCOM-2167: Fix for #8222 #16491
- Merge Pull Request #16491 from gelanivishal/magento2:2.1-develop-PR-port-16213 - Merged commits: 1. f0a8ba8 2. f388069
2 parents aa79287 + f388069 commit 977d7e4

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)