react icon indicating copy to clipboard operation
react copied to clipboard

(Autocomplete) - Last typed character is lost on blur, when the value matches a suggestion

Open timges opened this issue 1 year ago • 2 comments

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

  1. Go here https://primer.style/components/autocomplete/react/alpha#examples
  2. focus the autocomplete & clear the input
  3. type 'css'
  4. hit tab

-> last character is lost

Version

v36.9.0

Browser

Chrome, Safari, Firefox, Edge

timges avatar Feb 20 '24 13:02 timges

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!

broccolinisoup avatar Feb 27 '24 00:02 broccolinisoup