if frontend related, tell us your Browser, Version and OS
OS: Windows
Browser: Chrome
Version 101.0.4951.54
Describe the bug
When clearing a dropdown with multi=True it will not clear if there is an option with value="".
Instead when attempting to clear it will show that that an option with value="" has been selected.
Furthermore, if an option with value="" has been selected then all other options where value="" disappears.
This is also the case for other values.
Tested with multiple options where value = "1"
I suspect it is related to changes in !1970
As this behavior is new and it appears the 1970 fix changes setting the value of dropdowns.
Expected behavior
When deleting the last option one would expect the dropdown to clear and not select value="" option.
Furthermore, it is not appropriate that options that share values are hidden when selected.
Describe your context Please provide us your environment, so we can easily reproduce the issue.
pip list | grep dash
belowif frontend related, tell us your Browser, Version and OS
Describe the bug
When clearing a dropdown with multi=True it will not clear if there is an option with value="". Instead when attempting to clear it will show that that an option with value="" has been selected.
Furthermore, if an option with value="" has been selected then all other options where value="" disappears.
value = "1"
I suspect it is related to changes in !1970 As this behavior is new and it appears the 1970 fix changes setting the value of dropdowns.
Expected behavior
When deleting the last option one would expect the dropdown to clear and not select value="" option.
Furthermore, it is not appropriate that options that share values are hidden when selected.
Screenshots
Component:
On initial load:![image](https://user-images.githubusercontent.com/49019622/168838147-8217656a-3fd5-4073-b877-ae2ba5fb6814.png)
Select option with a![image](https://user-images.githubusercontent.com/49019622/168838474-6ec8c8b1-dffe-473b-8575-fde3b9137f2c.png)
value='value'
Clear the options: Note: Clicking either cross does nothing, furthermore, the option labeled 'empty-option' has disappeared from list.![image](https://user-images.githubusercontent.com/49019622/168838559-60940c31-b033-4251-8af0-f5bf5a89545c.png)
We can then select the![image](https://user-images.githubusercontent.com/49019622/168838966-2873c1fb-ab8e-4b27-8c50-7417628e5d3f.png)
value='value'
option. we still can't see the 'empty-option' item.Deselect 'empty-option-disabled':![image](https://user-images.githubusercontent.com/49019622/168839180-b7681d94-061c-4007-a379-abd582b0d340.png)
Both options with value="" have returned.