mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
We can remove the typeahead by clicking outside the search box after we have entered the search string to be filtered and then focus on the searchbox and press enter or just by pressing enter on an empty string. Previously, the narrow would just deactivate for the above condition as the searchbox value which was passed as the raw_operators parameter to the narrow.activate function was empty. This happened because we called the activate function on pressing enter for the keyup event, while the keydown event in the parent container made a pill from the text and cleared the input. (as mentioned in the comment for `KEY.ENTER` case in `input_pill.js`) |
||
|---|---|---|
| .. | ||
| assets | ||
| audio | ||
| generated | ||
| html | ||
| images | ||
| js | ||
| shared | ||
| styles | ||
| templates | ||
| third | ||
| .eslintrc.json | ||
| .gitignore | ||
| favicon.ico | ||