@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
|
|
244
|
+
if (this.disabled) {
|
|
245
245
|
return;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
this
|
|
249
|
-
this
|
|
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
|
@@ -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)
|