@exmg/exm-navigation 1.1.23 → 1.1.24
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.
|
@@ -199,7 +199,14 @@ export class ExmNavigationBase extends MediaQueries(ExmgElement) {
|
|
|
199
199
|
*/
|
|
200
200
|
handleRailItemClick({ detail }) {
|
|
201
201
|
var _a;
|
|
202
|
-
|
|
202
|
+
const item = this.items.find((item) => item.id === this.activeItem[0]);
|
|
203
|
+
/**
|
|
204
|
+
* If this is the current item, skip it.
|
|
205
|
+
* If it is the current one and we have an additional path, handle the click to be able to go to the path's destination
|
|
206
|
+
*/
|
|
207
|
+
if (this.activeItem[0] !== detail ||
|
|
208
|
+
(this.activeItem[0] === detail && (item === null || item === void 0 ? void 0 : item.additionalPath)) ||
|
|
209
|
+
this.media !== 'desktop') {
|
|
203
210
|
const items = ((_a = this.items.find((item) => item.id === detail)) === null || _a === void 0 ? void 0 : _a.items) || [];
|
|
204
211
|
if (items.length && !this.touch) {
|
|
205
212
|
this.selectedItem = [detail, items[0].id];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-navigation",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "576d7d1f8477a41af924101531164e7d82f0d1d2"
|
|
51
51
|
}
|