set_up_stream: Update typeahead items to 12.

Fixes part of #30577.
This commit is contained in:
sanchi-t 2024-06-27 01:09:19 +05:30 committed by Tim Abbott
parent fed0aa6642
commit 1a8997589d
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ export function set_up_stream(
};
opts.help_on_empty_strings ||= false;
new Typeahead(bootstrap_typeahead_input, {
items: 5,
items: 12,
dropup: true,
helpOnEmptyStrings: true,
source(_query: string): StreamPillData[] {

View File

@ -255,7 +255,7 @@ run_test("set_up_stream", ({mock_template, override, override_rewire}) => {
override(bootstrap_typeahead, "Typeahead", (input_element, config) => {
assert.equal(input_element.$element, $fake_input);
assert.equal(config.items, 5);
assert.equal(config.items, 12);
assert.ok(config.dropup);
assert.ok(config.stopAdvance);