Skip to content

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Jul 5, 2020

@vercel
Copy link

vercel bot commented Jul 5, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/select/mfkgt97sm
✅ Preview: https://select-git-fix-paste.react-component.vercel.app

@zombieJ zombieJ merged commit 28a78f1 into master Jul 5, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-paste branch July 5, 2020 13:25
// Pasted text should replace back to origin content
if (tokenWithEnter && pastedTextRef.current && /[\r\n]/.test(pastedTextRef.current)) {
const replacedText = pastedTextRef.current.replace(/[\r\n]/g, ' ');
value = value.replace(replacedText, pastedTextRef.current);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

黑科技越来越多~

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.

Input.Search onChange event fires with duplicated value when wrapped in AutoComplete and using copy/paste
2 participants