Multi dropdown behaviour when items are removed

Sometimes when you remove an item from a multi dropdown, the dropdown automatically drops down and shows all remaining items available for selection. Sometimes it does not.

I have been playing around on the example in the documentation: https://plot.ly/dash/dash-core-components/dropdown

It seems like if the focus is on another element on the page, then clicking the ‘x’ directly will trigger a drop down. Whereas if you start with the focus on the dropdown, it won’t trigger a drop down (although not always).

How do I get it such that it will never drop down when items are removed?