Replies: 2 comments
-
This code looks like too complex. Why not just: <div id="suggestions" popover role="listbox">
<button role="option">Suggestion 1</button>
...
</div>
Making code simpler will help you with debugging this issue. |
Beta Was this translation helpful? Give feedback.
-
Yes, having custom But without a real app I can’t tell you why it is not working. Seems like you just need to do an investigation. Maybe it is because you have a complex mix of |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm developing an autocomplete system for an input, in basic shape I have something like this:
The list part works like a charm, and I can correctly tab through input > clear > search > listbox, then navigate with arrows.
My problem is when I try to set the focus through code, my goal here is the allow the user to navigate from the input to the list of suggestion by pressing the down arrow key.
I tried getting ElementRef of the list or the first element in the list and .focus() but it doesn't work, am I missing something?
I though about a "scoped" shortcut like:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions