Topic: Autocomplete and keyboard home /end
Marvin Herbold priority asked 3 years ago
Hello - this is about the autocomplete input component.
Terrible name, BTW - it really should be called typeahead or predictive typing. "Autocomplete" already has a definition in HTML (its an input attribute) that has nothing to do with typeahead.
Anyway, the issue I am running into is that the MDB autocomplete input thinks when I hit the end key or the home key, that I want to navigate to the beginning or ending of the dropdown list. However, the focus is not on the dropdown list, but is on the text input box. This causes accessibility issues. You cannot have two inputs both be in focus at the same time, which is what it looks like MDB is trying to do with the autocomplete input. The focus should be on the text input, and the home / end key should work as expected for text inputs. If I hit the tab key, then it should switch the focus over to the dropdown, and the home / end key should work as expected for dropdowns.
Even for people not needing accessibility compliant controls, having home / end not working as expected for autocomplete text boxes is just plain annoying.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.5.1
- Device: All
- Browser: All
- OS: All
- Provided sample code: No
- Provided link: No