zulip/static
Steve Howell b46c8d1dc3 typeahead: Avoid tracebacks due to navbar changes.
In our recent navbar changes, we made it so that the
Esc key auto-closed the navbar. Unfortunately,
that code would break other typeaheads with a traceback.

One user-facing symptom was that if you drafted a PM
and started a typeahead on a recipient, then hitting
the Esc key wouldn't close the typeahead.

Now we use an `on_escape` mechanism that is specific
to the navbar typeahead, so that it's both generic and
harder to break for widgets that don't opt in to it.

See bbdc66a214 for
more details on the commit that introduced this
regression.

Note that I only call `tab_bar.exit_search` now.
I don't check the class name of the input element,
since I know that the Esc key is happening in the
context of search.  And I don't blur the input,
since it's going to be hidden.
2020-05-06 13:25:49 -07:00
..
assets styles: Finish removing manual antialiasing configuration. 2019-08-30 14:51:52 -07:00
audio
generated
html static: Serve webpack bundles from the root domain. 2020-04-10 00:48:02 -07:00
images webhooks/sentry: Rewrite the sentry webhook for the latest SDKs. 2020-05-02 13:39:57 -07:00
js typeahead: Avoid tracebacks due to navbar changes. 2020-05-06 13:25:49 -07:00
shared typeahead: Convert to ES6 module. 2020-02-19 14:36:42 -08:00
styles widgets: Style buttons properly in night-mode. 2020-05-06 09:57:36 -04:00
templates messages: Allow moving a topic to another stream. 2020-05-04 10:03:03 -07:00
third typeahead: Avoid tracebacks due to navbar changes. 2020-05-06 13:25:49 -07:00
.eslintrc.json lint: Delegate console.log check to ESLint. 2020-02-07 14:09:47 -08:00
.gitignore team: Generate team page data using cron job. 2020-04-08 12:52:31 -07:00
favicon.ico