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

Backspace will remove most recent tag if current input is empty #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Manas-Nagelia
Copy link

Added a useEffect to update activeTagIndex so that if you backspace when the current input is empty it will delete the most recent tag. Before my commit, to use the backspace to remove an item, you would have to use the arrow key to move to the left tag and then delete it. My implementation allows the user to delete the most recent tag as long as the current topic they are typing in is empty.

Added useEffect to update activeTagIndex so that if you backspace when the current input is empty it will backspace the most recent tag.
Copy link

vercel bot commented Aug 23, 2024

@Manas-Nagelia is attempting to deploy a commit to the jaleelb's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant