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

Quickly click to delete tag, there is a bug #1127

Open
wabgy opened this issue Sep 23, 2022 · 5 comments
Open

Quickly click to delete tag, there is a bug #1127

wabgy opened this issue Sep 23, 2022 · 5 comments

Comments

@wabgy
Copy link

wabgy commented Sep 23, 2022

Hello, there are the following two bugs
1). When entering the edit mode, change it to clicks: 1, enter the number 1, 2 becomes two tags, and quickly click the delete button, there is a chance to trigger the edit:start event method, and enter the number 1 or 2 again, it becomes Can't tag.
2). Double-click the input box, the console will prompt the message 'tag element doesn't exist'.
please verify, thanks!

Sorry I don't know how to upload the video.

https://jsbin.com/becapidoqi/edit?js,console,output

@yairEO
Copy link
Owner

yairEO commented Sep 23, 2022

sorry but I don't understand, what is the actual bug?

@wabgy
Copy link
Author

wabgy commented Sep 26, 2022

Sorry, this is the demo page.
Enter the number 1, 2 becomes two tags,after triggering the edit:start event, you will find the following problems:
1). The first input content is deleted after generating the tag (it seems that the content already exists and is deleted).
2). Double-click the input box, the console will prompt the message 'tag element doesn't exist'.

please verify.

💥 Demo Page
https://jsbin.com/tetixowayo/edit?js,console,output

JS.Bin.-.Collaborative.JavaScript.Debugging.-.Google.Chrome.2022-09-23.18-03-52.mp4

@yairEO
Copy link
Owner

yairEO commented Nov 12, 2022

I've tried so many times to delete as fast as I could but I could not reproduce the bug (in your JSBIN)

@LucasCardoso-LC
Copy link

LucasCardoso-LC commented Jan 18, 2024

Sorry to resurect an old issue but the same is happening here, it's easier to reproduce if you hold backspace to delete the tags.

@yairEO
Copy link
Owner

yairEO commented Jan 23, 2024

@LucasCardoso-LC - please upload a video but I cannot reproduce this at all... I've tried adding several tags and holding the BACKSPACE key and it always perfectly removes them all and the value of the original input is in-sync.

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

No branches or pull requests

3 participants