diff --git a/src/Multiselect.vue b/src/Multiselect.vue index 9ca9e6e..1277971 100644 --- a/src/Multiselect.vue +++ b/src/Multiselect.vue @@ -259,13 +259,14 @@ export default defineComponent({ }, }, /** - * Alters the displayed label if multiple selection mode is active. + * Alters the displayed label. * Can be a string or a function returning a string. - * The passed parameter of the function is an array of the selected options. - * By default, it displays the amount of selected options + * The passed parameter of the function is the selected option in single mode or an array of the selected options in multiple mode. + * By default, it displays the amount of selected options in multiple mode. + * In single mode the selected options label (optionLabel) is displayed. */ displaySelectedValues: { - type: [Function, String] as PropType<((options: Array