Description
Hello everybody,
I think I noticed a little bug when using Autocomplete when 'multiple' is set to true in combination with the tom-select-option 'closeAfterSelect' set to false.
When you enter a serch term into the input field, you see a list with all matching items (as expected), but after you select two of them, the entered search term is missing and you have to reenter the search term.
First I thought that is because of something being strange, misconfigured or not up to date in the project where a customer reported that behaviour.
So I just started a brand-new Symfony 6.2 project only for the purpose of reproducing that behaviour and it is the same in the new project.
Here is the TestType form I created:
$builder
->add('test', ChoiceType::class, [
'choices' => $choices,
'label' => 'Choose number(s) please',
'multiple' => true,
'required' => false,
'autocomplete' => true,
'tom_select_options' => [
'closeAfterSelect' => false
],
'placeholder' => '',
])
->add('submit', SubmitType::class);
}
And here you can see what happens:
edit: mardown and example.gif somehow do not work. I am sorry :(