neo.mjs 5.1.7 → 5.1.9

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.
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='5.1.7'
23
+ * @member {String} version='5.1.9'
24
24
  */
25
- version: '5.1.7'
25
+ version: '5.1.9'
26
26
  }
27
27
 
28
28
  /**
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='5.1.7'
23
+ * @member {String} version='5.1.9'
24
24
  */
25
- version: '5.1.7'
25
+ version: '5.1.9'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "5.1.7",
3
+ "version": "5.1.9",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -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.7'
240
+ * @default '5.1.9'
241
241
  * @memberOf! module:Neo
242
242
  * @name config.version
243
243
  * @type String
244
244
  */
245
- version: '5.1.7'
245
+ version: '5.1.9'
246
246
  };
247
247
 
248
248
  Object.assign(DefaultConfig, {
@@ -198,11 +198,7 @@ class Select extends Picker {
198
198
  * @protected
199
199
  */
200
200
  afterSetValue(value, oldValue, preventFilter=false) {
201
- let list = this.list;
202
-
203
- list && (list.silentVdomUpdate = true);
204
201
  !preventFilter && this.updateValue(true);
205
- list && (list.silentVdomUpdate = false);
206
202
 
207
203
  super.afterSetValue(value, oldValue)
208
204
  }
@@ -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 = hashString && store.findFirst({route: hashString})?.[store.keyProperty];
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;