Skip to content

Prevent DOM event race conditions when clicking on a filter bar suggestion

Erwan Rouchet requested to merge fix-filterbar-suggestions-click into master

Closes #841 (closed)

Clicking on a suggestion caused two events: a blur event on the FilterInput then a click event on the suggestion. The blur event was used to hide the suggestions whenever focus is lost on the input, so the suggestion disappears before it can be clicked.

I didn't want to add yet another hack, so instead there will be a minor annoyance when using the Tab key to move around since the suggestions will stay opened.

Edited by Erwan Rouchet

Merge request reports

Loading