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:
+1
-2
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user