I have a script that gives the focus to a specific element in a popped up div when pressing the down key in a textbox. Worked well until I added a sidebar navigation pane using an Bootstrap offcanvas component.
Now, even though the script still does correctly identify the element to be given the focus to, instead of giving this element the focus, it gives it to the last link of the sidebar...
Any idea how I could resolve this issue?