kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
fix(front): create custom option in pills when user has pressed ENTER without matching suggestion
rodzic
94b5c8a014
commit
6a31a708de
|
@ -140,15 +140,9 @@ const confirmed = (option:"BestMatch" | "New") => {
|
||||||
? match.value && other.value(match.value).item.isCurrent
|
? match.value && other.value(match.value).item.isCurrent
|
||||||
? match.value
|
? match.value
|
||||||
: { label: currentItem.value.label.replace(',', '').replace(' ', '').trim(), type: "custom" }
|
: { label: currentItem.value.label.replace(',', '').replace(' ', '').trim(), type: "custom" }
|
||||||
: option === "BestMatch"
|
: match.value && option === "BestMatch"
|
||||||
? match.value
|
? match.value
|
||||||
: undefined
|
: currentItem.value
|
||||||
|
|
||||||
// // Apply the identical, otherwise the best match, if available
|
|
||||||
// currentItem.value
|
|
||||||
// = otherItems.value?.find(({ label })=>label === currentItem.value?.label.trim())
|
|
||||||
// || match.value
|
|
||||||
// || currentItem.value
|
|
||||||
|
|
||||||
// Close dropdown
|
// Close dropdown
|
||||||
isEditing.value = false
|
isEditing.value = false
|
||||||
|
|
Ładowanie…
Reference in New Issue