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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ketekny-ui-kit",
3
3
  "type": "module",
4
- "version": "1.0.30",
4
+ "version": "1.0.31",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -59,7 +59,7 @@ export default {
59
59
 
60
60
  itemSelectable: {
61
61
  type: Function,
62
- default: () => () => false, // all selectable by 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]);