diff --git a/doc/multiselect/VirtualScrollDoc.vue b/doc/multiselect/VirtualScrollDoc.vue index 908791932..8749b29c0 100644 --- a/doc/multiselect/VirtualScrollDoc.vue +++ b/doc/multiselect/VirtualScrollDoc.vue @@ -84,7 +84,7 @@ const onSelectAllChange = (event) => { selectedItems.value = event.checked ? items.value.map((item) => item.value) : []; selectAll.value = event.checked; }; -onChange(event) { +const onChange = (event) => { selectAll.value = event.value.length === items.value.length; }