Skip to content

Commit

Permalink
fix(pro:tag-select): tag creation option should hide when input fully…
Browse files Browse the repository at this point in the history
… matched (#1881)
  • Loading branch information
sallerli1 committed Apr 8, 2024
1 parent f2fcf2d commit fb6116f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pro/tag-select/src/composables/useTagData.ts
Expand Up @@ -69,7 +69,7 @@ export function useTagData(props: ProTagSelectProps, tagColorContext: TagColorCo
})

const inputFullyMatched = computed(
() => filteredData.value.length === 1 && filteredData.value[0].label === inputValue.value,
() => inputValue.value && filteredData.value.findIndex(data => data.label === inputValue.value) > -1,
)

const getTagDataByKey = (key: VKey) => {
Expand Down

0 comments on commit fb6116f

Please sign in to comment.