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

keeslinp picture keeslinp  路  3Comments

dilizarov picture dilizarov  路  3Comments

mattmacpherson picture mattmacpherson  路  3Comments

AlvMF1 picture AlvMF1  路  3Comments

SajagTiwari picture SajagTiwari  路  3Comments