@limetech/lime-elements 37.1.0-next.86 → 37.1.0-next.87

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [37.1.0-next.87](https://github.com/Lundalogik/lime-elements/compare/v37.1.0-next.86...v37.1.0-next.87) (2024-01-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+
7
+ * **menu:** calculate currentSubMenu even when searching ([6da2af4](https://github.com/Lundalogik/lime-elements/commit/6da2af4a25d039ab2775e451eb36886fda43e635))
8
+ * **menu:** clear search when navigating the menu ([baa4d25](https://github.com/Lundalogik/lime-elements/commit/baa4d25c3e29f92d850c0d1719e94fab21c4c636))
9
+
1
10
  ## [37.1.0-next.86](https://github.com/Lundalogik/lime-elements/compare/v37.1.0-next.85...v37.1.0-next.86) (2024-01-09)
2
11
 
3
12
 
@@ -136,6 +136,7 @@ const Menu = class {
136
136
  this.handleBreadcrumbsSelect = (event) => {
137
137
  if (!event.detail.menuItem) {
138
138
  this.currentSubMenu = null;
139
+ this.clearSearch();
139
140
  this.navigateMenu.emit(null);
140
141
  this.setFocus();
141
142
  return;
@@ -277,6 +278,7 @@ const Menu = class {
277
278
  // If only one step down, go to the root of the menu.
278
279
  // No need to load a sub-menu.
279
280
  this.currentSubMenu = null;
281
+ this.clearSearch();
280
282
  this.navigateMenu.emit(null);
281
283
  this.setFocus();
282
284
  return;
@@ -327,6 +329,7 @@ const Menu = class {
327
329
  this.loadingSubItems = false;
328
330
  if (subItems === null || subItems === void 0 ? void 0 : subItems.length) {
329
331
  this.currentSubMenu = menuItem;
332
+ this.clearSearch();
330
333
  this.navigateMenu.emit(menuItem);
331
334
  this.setFocus();
332
335
  return;
@@ -438,10 +441,6 @@ const Menu = class {
438
441
  }
439
442
  }
440
443
  currentSubMenuWatcher() {
441
- if (this.searchValue) {
442
- this.menuBreadCrumb = [];
443
- return;
444
- }
445
444
  const breadCrumbItems = [];
446
445
  let currentItem = this.currentSubMenu;
447
446
  while (currentItem) {