Autocompletion of label in Markdown offers undefined instead of displaying error message
Summary
When auto-completing a label by typing ~
into a Markdown field, a label named undefined
is offered in case the autocomplete_sources
was not loaded (e.g. in case of slow or no connection).
Steps to reproduce
- open any page with a Markdown field (e.g. Issue) that you have not done autocompletion on (
autocomplete_sources
is cached) - switch browser to offline in developer tools
- type
~
into Markdown field
Expected behavior
Error message is displayed—or at least no labels.
Actual behavior
A label named undefined
is displayed and can be selected.
Screenshots
Possible fixes
Display something like Auto-completion has not been initialized
until fetching the labels is ready.