@veritree/ui 0.22.1 → 0.22.3

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.
@@ -98,9 +98,9 @@ export const floatingUiItemMixin = {
98
98
  focus: this.focus,
99
99
  onClick: this.onClick,
100
100
  };
101
-
101
+
102
102
  this.apiInjected().registerItem(item);
103
-
103
+
104
104
  this.index = this.items.length - 1;
105
105
  },
106
106
 
@@ -185,11 +185,15 @@ export const floatingUiItemMixin = {
185
185
  },
186
186
 
187
187
  onClick() {
188
+ console.log(this.value);
188
189
  if (this.disabled) {
189
190
  return;
190
191
  }
191
192
 
192
- this.value ? this.apiInjected().emit(this.value) : this.$emit('click');
193
+ this.value !== undefined
194
+ ? this.apiInjected().emit(this.value)
195
+ : this.$emit('click');
196
+
193
197
  this.$nextTick(() => this.leaveMenu());
194
198
  },
195
199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.22.1",
3
+ "version": "0.22.3",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -2,6 +2,7 @@
2
2
  <button
3
3
  :id="id"
4
4
  :class="classComputed"
5
+ :disabled="disabled"
5
6
  :aria-expanded="expanded"
6
7
  :aria-haspopup="hasPopup"
7
8
  type="button"