Skip to content

Commit 2d4968c

Browse files
Merge pull request #7025 from getkirby/v5/fix/item-selectable
`k-item`: fix non-selectable state
2 parents f761bb9 + 80b0796 commit 2d4968c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

panel/src/components/Collection/Item.vue

+4-5
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,14 @@ export default {
114114
},
115115
/**
116116
* If `true`, the item will be selectable via a checkbox
117+
* @since 5.0.0
117118
*/
118119
selecting: Boolean,
119120
/**
120121
* If `false`, the select checkbox will be disabled
122+
* @since 5.0.0
121123
*/
122-
selectable: {
123-
type: Boolean,
124-
default: true
125-
},
124+
selectable: Boolean,
126125
/**
127126
* If `true`, the sort handle will be shown on hover
128127
*/
@@ -356,7 +355,7 @@ export default {
356355
}
357356
358357
/** Selectable state */
359-
.k-item[data-selectable="true"] {
358+
.k-item[data-selecting="true"][data-selectable="true"] {
360359
cursor: pointer;
361360
}
362361
.k-item-options-checkbox {

0 commit comments

Comments
 (0)