The use case below was working in 13.0.4 but not in 13.0.12. I've observed the same issue in version 15 as well. Here are the component options:
customSearchEnabled = true
When the (search) event is triggered, I am making an API call to update the list. However, the already selected items disappear if they are not available in the updated list.
Search for Earth.
Select it.
Search for Mars.
Server returns the results for Mars.
This list does not include Earth.
The already selected Earth is no longer available.
Search again for Earth. Now, Earth will reappear in the selection. This is because the list now has Earth.
I think this must work correctly when hideSelectedItems=true too.
I tried to reproduce. But I think I must not be able to get the same case. I lose the list and close the drop-down.
Do you have a test case on Stackblitz?
The use case below was working in 13.0.4 but not in 13.0.12. I've observed the same issue in version 15 as well. Here are the component options:
customSearchEnabled = true
When the (search) event is triggered, I am making an API call to update the list. However, the already selected items disappear if they are not available in the updated list.
I think this must work correctly when hideSelectedItems=true too.