react
react copied to clipboard
(Autocomplete) - Last typed character is lost on blur, when the value matches a suggestion
Description
https://github.com/primer/react/assets/13063135/a908fe24-f3e3-4729-ad1b-93932a03c052
When the string you type into the autocomplete input field exactly matches a suggestion, the last character is lost on blur
Steps to reproduce
- Go here https://primer.style/components/autocomplete/react/alpha#examples
- focus the autocomplete & clear the input
- type 'css'
- hit tab
-> last character is lost
Version
v36.9.0
Browser
Chrome, Safari, Firefox, Edge
Hi @timges 👋 Thanks for raising this issue and creating a PR to fix it! We really appreciate it 🙏 One of us from the team will review your PR hopefully soon! Thanks for contributing to Primer!