Semantic-ui-react: Clear selection from a dropdown

Created on 20 Mar 2017  路  3Comments  路  Source: Semantic-Org/Semantic-UI-React

Any chance we get an option to clear the selected value in a dropdown?

Like react-select is doing?

image

invalid

Most helpful comment

All 3 comments

This seems like a cool option. It would need to first be added to SUI core so there is CSS for it. Then, we can implement it in the React components.

Please post this issue over at: https://github.com/Semantic-Org/Semantic-UI

Workaround

You could add your own override CSS that adds this extra icon and a wrapper component that handled its click and cleared the Dropdown.

@levithomason Could you provide some sample code for this workaround?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

laukaichung picture laukaichung  路  3Comments

hankthewhale picture hankthewhale  路  3Comments

keeslinp picture keeslinp  路  3Comments

eXtreme picture eXtreme  路  3Comments

nix1 picture nix1  路  3Comments