ItsJonQ / g2

✨ An experimental reimagining of WordPress components
http://g2-components.com/
MIT License
105 stars 12 forks source link

SelectDropdown: Ensure initial aria-expanded is rendered in reference element #244

Closed ItsJonQ closed 3 years ago

ItsJonQ commented 3 years ago
Screen Shot 2021-01-22 at 10 41 24 AM

This update fixes the downshift useSelect integration with SelectDropdown. Previously, aria-expanded would only be added after an interaction with the dropdown. We need the reference element (button) to have aria-expanded from it's initial render.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/itsjonq/g2/q1e24etvx
✅ Preview: https://g2-git-fix-select-dropdown-initial-aria-expanded.itsjonq.vercel.app