Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags Input: Pasting text on TagsInput breaks functionality #1342

Closed
TGlide opened this issue Mar 13, 2024 · 2 comments
Closed

Tags Input: Pasting text on TagsInput breaks functionality #1342

TGlide opened this issue Mar 13, 2024 · 2 comments

Comments

@TGlide
Copy link

TGlide commented Mar 13, 2024

🐛 Bug report

If you paste any text on TagsInput when addOnPaste is false, you can no longer add any tag, until you select/delete an existing tag.

Screen.Recording.2024-03-13.at.17.02.54.mov

Additionally, when addOnPaste is true, if the input is empty, paste does not work, and breaks any further input.

Screen.Recording.2024-03-13.at.17.08.39.mov

💥 Steps to reproduce

Showed in videos above

💻 Link to reproduction

CodeSandbox reproduction: https://your-codesandbox-link-goes-here.io

🧐 Expected behavior

I expect paste not to break other functionalities

🧭 Possible Solution

🌍 System information

Software Version(s)
Zag Version 0.38.1
Browser Chrome
Operating System Mac

📝 Additional information

@segunadebayo
Copy link
Member

Great catch @TGlide. I appreciate you smoke-testing the components

I've gone ahead to fix the bug in the machine. It was largely due to a missing state transition.

I'll do a new release shortly.

@TGlide
Copy link
Author

TGlide commented Mar 19, 2024

Awesome, thank you!

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

No branches or pull requests

2 participants