shouting 'why' at my computer as if it will tell me why my code is broken

Follow

@jookia
Yep,I have been there.13 break points & stack overflow still :(
If callstack could talk,it would tell me in the best gandalf voice"Sawpy, Things have been set into motion, that cannot be undone" 😋.

@Simplyswapy In this case the issue turned out to be that unfocusing a dropdown menu would force the current selection, in case you had the menu open with an element selected. It would force the selection by calling the click() handler on the item in question.

Ifound the other day that jQuery's click() doesn't work on <a> elements. I fixed the code to always call click() properly. Which turns out to be a mistake as clicking a dropdown item refocuses he search box, locking you in a focus loop.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.