@neovici/cosmoz-bottom-bar 9.0.2 → 9.0.4

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.
@@ -147,9 +147,7 @@ const useMenuButtons = (host) => {
147
147
  }))
148
148
  .toSorted((a, b) => b.priority - a.priority), [allButtons]);
149
149
  const { maxToolbarItems = 1 } = host;
150
- const toolbarLimit = Math.min(maxToolbarItems, buttonStates.visible.size >= 0
151
- ? buttonStates.visible.size
152
- : allButtons.length);
150
+ const toolbarLimit = Math.min(maxToolbarItems, buttonStates.visible.size);
153
151
  useEffect(() => {
154
152
  processedButtons.forEach(({ element, priority }, i) => {
155
153
  const isVisible = i < toolbarLimit;
package/dist/overflow.js CHANGED
@@ -44,7 +44,6 @@ const setupObserver = (slot, onOverflow) => {
44
44
  }
45
45
  else {
46
46
  observer.observe(c);
47
- newVisible.add(c);
48
47
  }
49
48
  }
50
49
  visible = newVisible;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-bottom-bar",
3
- "version": "9.0.2",
3
+ "version": "9.0.4",
4
4
  "description": "A responsive bottom-bar that can house buttons/actions and a menu for the buttons that won't fit the available width.",
5
5
  "keywords": [
6
6
  "polymer",