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

TextInputWithTokens bugfix: focus next token when removing first token with keyboard #1529

Merged
merged 10 commits into from
Oct 27, 2021

Conversation

mperrotti
Copy link
Contributor

Before this fix, the next token would not get focused after removing the first token in the input by selecting it and hitting the 'Backspace' or 'Delete' key

Demos

Before:

Screen.Recording.10-22-2021.at.2.38.PM.mp4

After:

Screen.Recording.10-22-2021.at.2.37.PM.mp4

Merge checklist

  • Added/updated tests
  • [n/a] Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

Before this fix, the next token would not get focused after removing the first token in the input by selecting it and hitting the 'Backspace' or 'Delete' key
@mperrotti mperrotti requested review from a team and dgreif October 22, 2021 18:42
@changeset-bot
Copy link

changeset-bot bot commented Oct 22, 2021

🦋 Changeset detected

Latest commit: b6c4777

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2021

size-limit report 📦

Path Size
dist/browser.esm.js 54.05 KB (+0.11% 🔺)
dist/browser.umd.js 54.45 KB (+0.12% 🔺)

mperrotti and others added 2 commits October 27, 2021 14:23
Co-authored-by: Cole Bemis <colebemis@github.com>
Co-authored-by: Cole Bemis <colebemis@github.com>
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.

2 participants