diff --git a/src/runtime/components/forms/SelectMenu.vue b/src/runtime/components/forms/SelectMenu.vue
index 69338676..36db0b05 100644
--- a/src/runtime/components/forms/SelectMenu.vue
+++ b/src/runtime/components/forms/SelectMenu.vue
@@ -37,7 +37,7 @@
{{ modelValue.length }} selected
- {{ typeof modelValue === 'string' ? modelValue : modelValue[optionAttribute] }}
+ {{ ['string', 'number'].includes(typeof modelValue) ? modelValue : modelValue[optionAttribute] }}
{{ placeholder || ' ' }}
@@ -85,7 +85,7 @@
/>
- {{ typeof option === 'string' ? option : option[optionAttribute] }}
+ {{ ['string', 'number'].includes(typeof option) ? option : option[optionAttribute] }}
@@ -407,7 +407,7 @@ export default defineComponent({
return (props.options as any[]).filter((option: any) => {
return (props.searchAttributes?.length ? props.searchAttributes : [props.optionAttribute]).some((searchAttribute: any) => {
- return typeof option === 'string' ? option.search(new RegExp(query.value, 'i')) !== -1 : (option[searchAttribute] && option[searchAttribute].search(new RegExp(query.value, 'i')) !== -1)
+ return ['string', 'number'].includes(typeof option) ? option.toString().search(new RegExp(query.value, 'i')) !== -1 : (option[searchAttribute] && option[searchAttribute].search(new RegExp(query.value, 'i')) !== -1)
})
})
})