diff --git a/packages/bbui/src/Form/Core/Select.svelte b/packages/bbui/src/Form/Core/Select.svelte index 654d028c4d..aaca8b640d 100644 --- a/packages/bbui/src/Form/Core/Select.svelte +++ b/packages/bbui/src/Form/Core/Select.svelte @@ -42,7 +42,7 @@ } const index = options.findIndex((option, idx) => { const opt = getOptionValue(option, idx) - return compare ? compare(opt, value) : opt === value + return typeof compare === "function" ? compare(opt, value) : opt === value }) return index !== -1 ? getAttribute(options[index], index) : null }