Skip to content

fix(Select): clear input after pasting text with tokenSeparators#8446

Open
domnikov-timofei wants to merge 1 commit intovueComponent:mainfrom
domnikov-timofei:fix-select-paste-input
Open

fix(Select): clear input after pasting text with tokenSeparators#8446
domnikov-timofei wants to merge 1 commit intovueComponent:mainfrom
domnikov-timofei:fix-select-paste-input

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

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant