@veritree/ui 0.52.0 → 0.52.1

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.
@@ -241,12 +241,12 @@ export const floatingUiItemMixin = {
241
241
  },
242
242
 
243
243
  onClick() {
244
- if (this?.disabled) {
244
+ if (this.disabled) {
245
245
  return;
246
246
  }
247
247
 
248
- this?.multiple ? this.handleToogle() : this.handleClick();
249
- this?.multiple ? null : this.$nextTick(() => this.leaveMenu());
248
+ this.multiple ? this.handleToogle() : this.handleClick();
249
+ this.multiple ? null : this.$nextTick(() => this.leaveMenu());
250
250
  },
251
251
 
252
252
  onKeyEsc() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -46,6 +46,7 @@ export default {
46
46
  return {
47
47
  apiInjected: this.apiDropdownMenu,
48
48
  componentName: 'dropdown-menu-item',
49
+ multiple: false,
49
50
  };
50
51
  },
51
52
 
@@ -184,6 +184,14 @@ export default {
184
184
  }, 1000);
185
185
  },
186
186
 
187
+ /**
188
+ * On change is used only when multiple is set to true.
189
+ * It handles the checkbox changes to interact with
190
+ * the provider by pushing or removing values.
191
+ *
192
+ * @param {*} value
193
+ * @param {Object} event
194
+ */
187
195
  onChange(value, event) {
188
196
  event.target.checked
189
197
  ? this.apiListbox().pushValueToValueComputed(value)