fix: allow adding model names that differ only by case in multi-select (#6061)

Merge pull request #6061 from feitianbubu/pr/c33b40b70
This commit is contained in:
同語
2026-07-10 23:30:15 +08:00
committed by GitHub
+1 -2
View File
@@ -145,8 +145,7 @@ export function MultiSelect(props: MultiSelectProps) {
(selectedSet.has(trimmedInput) ||
props.options.some(
(option) =>
option.value.toLowerCase() === trimmedInput.toLowerCase() ||
option.label.toLowerCase() === trimmedInput.toLowerCase()
option.value === trimmedInput || option.label === trimmedInput
))
const canCreate =