ketekny-ui-kit 1.0.30 → 1.0.31
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.
- package/package.json +1 -1
- package/src/ui/kDatatable.vue +2 -1
package/package.json
CHANGED
package/src/ui/kDatatable.vue
CHANGED
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
|
|
60
60
|
itemSelectable: {
|
|
61
61
|
type: Function,
|
|
62
|
-
default: () => () =>
|
|
62
|
+
default: () => () => true, // all selectable by default
|
|
63
63
|
},
|
|
64
64
|
|
|
65
65
|
modelValue: {
|
|
@@ -290,6 +290,7 @@ export default {
|
|
|
290
290
|
getToggledItem(previousSelection, nextSelection) {
|
|
291
291
|
const added = nextSelection.filter((item) => !this.containsItem(previousSelection, item));
|
|
292
292
|
if (added.length === 1) return this.normalizeItem(added[0]);
|
|
293
|
+
if (added.length > 1) return null;
|
|
293
294
|
|
|
294
295
|
const removed = previousSelection.filter((item) => !this.containsItem(nextSelection, item));
|
|
295
296
|
if (removed.length === 1) return this.normalizeItem(removed[0]);
|