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

Double cursor appearing on right letter(typed) followed by a wrong letter(typed) #37

Closed
FurqanAnwar opened this issue Oct 24, 2022 · 0 comments · Fixed by #38
Closed
Assignees
Labels
bug Something isn't working hacktoberfest-accepted

Comments

@FurqanAnwar
Copy link
Owner

When we type a wrong letter, the wrong letter animation starts and if we type the right letter right after the wrong letter the animation stops and puts 2 cursors on the letter.

Reason is when we type wrong letter we are setting up a function that will remove the animation and add cursor(class) back to the wrong letter. Since we typed the right letter right after typing the wrong letter we successfully added the new cursor but after 0.8s the wrong lettter function( which was being set by setTimeout earlier) removes the animation and add cursor(class) back to the element.

This PR include a fix for this issue.
Screenshot from 2022-10-24 18-05-41-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest-accepted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant