Skip to content

Conversation

@domnikov-timofei
Copy link

Problem

When pasting text like Lucy,Jack into Select with mode="tags" and tokenSeparators,
the text is correctly split into tags, but the original pasted string remains in the input field.

Steps to reproduce

  1. Use <a-select mode="tags" :token-separators="[',']" />
  2. Paste Lucy,Jack into the input
  3. Tags are created but Lucy,Jack remains visible in input

Solution

Changed order of operations in MultipleSelector.handleInput:

  • Process onInputChange first (triggers token splitting, clears searchValue)
  • Then sync targetValue with reactive inputValue state

Changes

  • components/vc-select/Selector/MultipleSelector.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant