summaryrefslogtreecommitdiff
path: root/client/js/controls/auto_complete_control.js
AgeCommit message (Collapse)Author
2020-08-22client/search: fix autocomplete for composite queriesShyam Sunder
Fixes #342
2020-06-06client+server: implement code autoformatting using prettier and blackShyam Sunder
2020-06-04client/js: format code to ESLintShyam Sunder
2017-10-01remove tags.jsonrr-
2016-09-29client/search: escape : in tag searchrr-
2016-08-23client/general: fix autocomplete controlrr-
Regression from d5e197e.
2016-08-22client/general: add empty href for link buttonsrr-
In e464e69 I removed href='#' but I noticed that it broke some things. Readding href serves two purposes: - it makes links reachable with Tab key - it makes links clickable with Enter key The alternative to this approach was to introduce [tabindex] and [role] attributes. But not only using tabindex=0 with <a/> is questionable, it'd require adding a keyboard handler that'd intercept space and return key presses and simulated link clicks. Since it's best to leave this kind of thing to the native UI, I went with readding hrefs instead. I believe that hash hrefs, even though being a common practice, are silly, so I decided to settle down with empty hrefs. As a bonus, I added a snippet that prevents middle mouse clicks from opening such links/buttons in new tabs, which was the motivation for e464e69.
2016-07-30client/general: remove faux href='#' from linksrr-
2016-07-05client/tags: fix hovering over autocomplete in FFrr-
Hovering over an autocomplete box always selected the last element rather than the element under the cursor. This is because resultIndex was bound by reference. This looks like a bug in FF implementation of "for (let [x, y] of ...)" -rather than binding "x" and "y" to the scope of the loop, it's equivalent to "for (var [x, y] of ...)", which causes nasty anomalies for functions created inside the loop body.
2016-07-03client/general: handle spaces in autocompleterr-
2016-05-29client/views: reuse mutation observerrr-
2016-05-21client/general: reduce lodash usagesrr-
2016-05-21client/general: refactor all the thingsrr-
- Move controls to the "controls/" directory - Make controls interface look similar to each other - Prefix "private" methods and attributes with underscore