👏👏👏 Nicely done. You can handle Home and End keys as well.
Home If the listbox is displayed, moves focus to and selects the first option. End If the listbox is displayed, moves focus to and selects the last option.
Waiting for the next post
to add the appropriate ARIA attributes and test the dropdown with a screen reader
Absolutely true about Home and End keys, but since they were marked as optional here on keyboard interactions, I decided not to include them to make the article more compact 🙂
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
👏👏👏 Nicely done. You can handle Home and End keys as well.
Waiting for the next post
Thank you! 🙂
Absolutely true about Home and End keys, but since they were marked as optional here on keyboard interactions, I decided not to include them to make the article more compact 🙂