mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
e02cc98092
When you type # or @ in the search box, a popup appears with autocomplete suggestions. Currently, when the popup is rendered it has the first item selected and upon pressing Enter, the first item is inserted into the search box. The problem with this behavior is that the first suggestion may not be what you want, and if you are typing quickly and hit enter, the first suggestion (which is not what you want) is inserted in the search box. This PR amends the popup so that it has no suggestions selected by default which means the enter key will not insert anything unless you select a suggestion via the up or down arrow keys. |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |