Commit d3b01b48 by 同語 Committed by GitHub

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

Merge pull request #6061 from feitianbubu/pr/c33b40b70
parents 4823417c e8596cab
......@@ -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 =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment