neo.mjs 5.1.7 → 5.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/apps/ServiceWorker.mjs
CHANGED
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -237,12 +237,12 @@ const DefaultConfig = {
|
|
237
237
|
useVdomWorker: true,
|
238
238
|
/**
|
239
239
|
* buildScripts/injectPackageVersion.mjs will update this value
|
240
|
-
* @default '5.1.
|
240
|
+
* @default '5.1.8'
|
241
241
|
* @memberOf! module:Neo
|
242
242
|
* @name config.version
|
243
243
|
* @type String
|
244
244
|
*/
|
245
|
-
version: '5.1.
|
245
|
+
version: '5.1.8'
|
246
246
|
};
|
247
247
|
|
248
248
|
Object.assign(DefaultConfig, {
|
@@ -50,7 +50,7 @@ class Breadcrumb extends Toolbar {
|
|
50
50
|
name: 'parentId',
|
51
51
|
type: 'Integer'
|
52
52
|
}, {
|
53
|
-
name: 'route',
|
53
|
+
name: 'route', // Each route has to end with a '/'. E.g.: '/home/accessibility/'
|
54
54
|
type: 'String'
|
55
55
|
}]
|
56
56
|
}
|
@@ -153,7 +153,13 @@ class Breadcrumb extends Toolbar {
|
|
153
153
|
onHashChange(value, oldValue) {
|
154
154
|
let hashString = value?.hashString,
|
155
155
|
store = this.store,
|
156
|
-
activeKey
|
156
|
+
activeKey;
|
157
|
+
|
158
|
+
if (hashString && !hashString.endsWith('/')) {
|
159
|
+
hashString += '/';
|
160
|
+
}
|
161
|
+
|
162
|
+
activeKey = hashString && store.findFirst({route: hashString})?.[store.keyProperty] || null;
|
157
163
|
|
158
164
|
if (activeKey !== null) {
|
159
165
|
this.activeKey = activeKey;
|