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

Closed
wabgy opened this issue Sep 23, 2022 · 7 comments
Closed

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

wabgy opened this issue Sep 23, 2022 · 7 comments
Labels

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. 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.

@SongTeaheon
Copy link

SongTeaheon commented Jun 20, 2024

I have also reproduced the issue and I am experiencing a similar problem.

Here is the issue I am facing:

When I quickly perform the following two steps after entering "1", the UI reflects both events, but the actual value change from the first event (deleting "1") is ignored.

  • First event: Delete "1".
  • Second event: Paste another value using cmd + v.

(Although the situation is different from the initially reported issue, both problems show that the value change from the first event is ignored.)

record.mov

@yairEO
Copy link
Owner

yairEO commented Jun 22, 2024

@SongTeaheon - thanks! that helped a lot, now I can reproduce it. I will create a fix shortly.

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

No branches or pull requests

4 participants