@cloudron/pankow 3.2.8 → 3.2.10

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.
@@ -146,6 +146,8 @@ async function open(event, element = null) {
146
146
 
147
147
  if (element) container.value.style.minWidth = element.getBoundingClientRect().width + 'px';
148
148
 
149
+ await nextTick();
150
+
149
151
  position();
150
152
 
151
153
  openEventTimeStamp.value = event.timeStamp;
@@ -208,7 +210,6 @@ function close() {
208
210
  container.value.style.maxHeight = 'unset';
209
211
  container.value.style.bottom = 'unset';
210
212
  container.value.style.top = 'unset';
211
- container.value = null;
212
213
  emit('close');
213
214
  }
214
215
 
@@ -41,7 +41,7 @@ function onActivated() {
41
41
 
42
42
  <template>
43
43
  <a class="pankow-menu-item" style="display: block" :href="isDisabled ? null : item.href" :target="item.target || null" @click="onActivated" :class="{ 'pankow-menu-item-disabled': isDisabled }" v-if="isVisible">
44
- <span :style="{ width: hasIcons ? '29px' : 0 }" ><Icon v-show="hasIcons" :icon="item.icon" /></span>{{ item.label }}
44
+ <span :style="{ width: hasIcons ? '29px' : 0 }" style="display: inline-block;"><Icon v-show="hasIcons" :icon="item.icon" /></span>{{ item.label }}
45
45
  </a>
46
46
  </template>
47
47
 
@@ -159,7 +159,7 @@ onMounted(() => {
159
159
 
160
160
  <template>
161
161
  <div class="pankow-singleselect" :class="{ 'pankow-singleselect-disabled': disabled }" ref="elem" tabindex="0" @click="onClick" @keydown.enter="onOpen" @keydown.down.stop.prevent="onSelectNext" @keydown.up.stop.prevent="onSelectPrev" @keydown.esc.stop="onClose" @keydown.stop="onKeyDown($event)">
162
- <Menu ref="menu" :model="menuModel" :search-threshold="searchThreshold" :close-on-activation="true" @close="onMenuClosed"></Menu>
162
+ <Menu ref="menu" :model="menuModel" :search-threshold="searchThreshold" :close-on-activation="true" @close="onMenuClosed"/>
163
163
  {{ selected ? selected[optionLabel] : placeholder }}
164
164
  <Icon icon="fa-solid fa-chevron-down" class="pankow-button-icon-right-with-text" />
165
165
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudron/pankow",
3
3
  "private": false,
4
- "version": "3.2.8",
4
+ "version": "3.2.10",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "types": "types/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-vue": "^6.0.1",
26
26
  "typescript": "^5.9.2",
27
- "vite": "^7.1.1",
27
+ "vite": "^7.1.2",
28
28
  "vue": "^3.5.18"
29
29
  }
30
30
  }