diff --git a/packages/bootstrap-vue-next/src/composables/useFormSelect.ts b/packages/bootstrap-vue-next/src/composables/useFormSelect.ts index 672bd3a3f..fc920a60c 100644 --- a/packages/bootstrap-vue-next/src/composables/useFormSelect.ts +++ b/packages/bootstrap-vue-next/src/composables/useFormSelect.ts @@ -13,6 +13,12 @@ export default (options: MaybeRefOrGetter, props: Record) => { if (typeof option === 'string') { return {value: option, text: option} } + if (typeof option === 'number') { + return {value: option, text: `${option}`} + } + if (option instanceof Date) { + return {value: option, text: option.toLocaleString()} + } const value: unknown = get(option, props.valueField as string) const text: string = get(option, props.textField as string)