y200subcontrols 0.1.364 → 0.1.365

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.
@@ -35,9 +35,7 @@ function toggleSelect(menuItem) {
35
35
  }
36
36
  filterItems();
37
37
  updateSelection();
38
- if (!multiSelect) {
39
- closeMenu();
40
- }
38
+ closeMenu();
41
39
  }
42
40
  function filterItems() {
43
41
  menuItemsFiltered = menuItems.filter(
@@ -152,7 +150,7 @@ onMount(() => {
152
150
  class="absolute right-0 left-0 top-[100%]
153
151
  bg-white border border-slate-300 shadow-md rounded z-[1001]
154
152
  transition-all ease-linear duration-300
155
- grid overflow-y-auto h-[{menuSize}px]
153
+ grid
156
154
  "
157
155
  style="visibility: {isMenuOpen ? 'visible' : 'hidden'};grid-template-rows:{isMenuOpen
158
156
  ? '1fr'
@@ -162,7 +160,11 @@ onMount(() => {
162
160
  <div class="px-2 mt-2">
163
161
  <LabeledFormInput on:change={filterItems} bind:value={filter} {placeholder} size="sm" />
164
162
  </div>
165
- <ul class="py-1" bind:this={menuItemContainer}>
163
+ <ul
164
+ class="py-1 overflow-y-auto"
165
+ bind:this={menuItemContainer}
166
+ style="height: {menuSize}px;"
167
+ >
166
168
  {#each menuItemsFiltered as menuItem (menuItem.key)}
167
169
  <li>
168
170
  <button
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "y200subcontrols",
3
- "version": "0.1.364",
3
+ "version": "0.1.365",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",