Page MenuHomePhabricator

Search results cannot be selected using arrow keys
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The selection jumps around. See screencast, where I'm just pressing the down arrow repeatedly:

The selected item seems to move up by 4 for every keypress, or something like that.

What should have happened instead?:
Select the next/previous result when the down/up arrow is pressed respectively.

Other information (browser name/version, screenshots, etc.):
This affects the "default" search widget, used e.g. in old vector. Other search widgets, such as in Vector-2022 or Minerva, are not affected.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Ah, there's also the following error in the browser console:

Uncaught RangeError: Maximum call stack size exceeded
    at String.replace (<anonymous>)
    at find (jquery.js:939:26)
    at find.matchesSelector (jquery.js:1444:9)
    at jQuery.filter (jquery.js:2795:22)
    at winnow (jquery.js:2784:16)
    at jQuery.fn.init.is (jquery.js:2834:12)
    at keypress (jquery.suggestions.js:427:46)
    at HTMLInputElement.eval (jquery.suggestions.js:739:7)
    at HTMLInputElement.dispatch (jquery.js:5145:27)
    at elemData.handle (jquery.js:4949:28)