You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the example specified on the Testcase bellow, type 'hi' and hit enter
Hit delete to remove the added selection
Type 'hi' again and hit enter
Repeat steps 1 to 3 and use the word 'hello'
Result
The second time the user hits enter, the word 'hi' remains in the input and the dropdown still suggests the addition of 'hi' to the options. When adding 'hello', the input is cleared, but the dropdown still suggests a new addition of 'hello'.
Expected
It is expected that the dropdown clears the input after an addition and recognizes that the option has been added instead of suggesting a new addition.
I didn't find mention on the problem where the dropdown suggests the addition of an item that has already been added. I'm talking about the allowAdditions flag, as opposed to when selecting a new item.
You can control your options with onAddItem handlers and skip duplicates. After we will make searchQuery contollable you will can to clear its value after onChange. I also think that we should transform the additionalLabel prop to shorthand, this will allow to pass null when option has already added.
Steps to Reproduce
Result
The second time the user hits enter, the word 'hi' remains in the input and the dropdown still suggests the addition of 'hi' to the options. When adding 'hello', the input is cleared, but the dropdown still suggests a new addition of 'hello'.
Expected
It is expected that the dropdown clears the input after an addition and recognizes that the option has been added instead of suggesting a new addition.
Testcase
If the docs show the issue, use: https://react.semantic-ui.com/modules/dropdown#dropdown-example-multiple-allow-additions
Otherwise, fork this to get started: http://codepen.io/levithomason/pen/ZpBaJX
The text was updated successfully, but these errors were encountered: