zulip/static
ryanreh99 b38cbc8f34 typeahead: Fix stream+topic completions for empty query.
This fixes a bug where the autocomplete for topics
deleted all the text content, if the topic jump is used
without entering any text.

The topic typeahead is automatically set up, on entering
the ">" key for stream completions. Therefore there is a
case where the user can select a typeahead item without
entering any text.

Thus the token length will be 0 and `beginning.slice(0, -0)` returns
"" instead of the `beginning` string.  The case is only relevant for
"topic_list" completion as we don't set up the typeahead for empty
strings.

Fix this by reverting a hunk of
48f5e5179a, adding a test.

Fixes #16599.

Co-authored-by: Rohitt Vashishtha <aero31aero@gmail.com>
2020-10-29 11:02:17 -07:00
..
assets docs: Fix more capitalization issues. 2020-10-23 11:46:55 -07:00
audio
generated
html logo: Update Zulip logo. 2020-07-16 01:37:08 -07:00
images notifications: Use a dynamic SVG favicon for unread counts. 2020-10-21 07:43:00 -07:00
js typeahead: Fix stream+topic completions for empty query. 2020-10-29 11:02:17 -07:00
shared docs: Fix more capitalization issues. 2020-10-23 11:46:55 -07:00
styles docs: Fix more capitalization issues. 2020-10-23 11:46:55 -07:00
templates docs: Fix more capitalization issues. 2020-10-23 11:46:55 -07:00
third docs: Fix more capitalization issues. 2020-10-23 11:46:55 -07:00
.gitignore team: Generate team page data using cron job. 2020-04-08 12:52:31 -07:00