Semantic-ui-react: Getting value from Form.Select

Created on 5 Nov 2016  路  1Comment  路  Source: Semantic-Org/Semantic-UI-React

How do I can get a selected value from Form.Select Class? I tried a onChange event, but the result is an undefined value.

question

Most helpful comment

The Select has the same onChange signature as the Dropdown:

<Select onChange={(e, { value }) => alert(value)} />

Working example here: http://react.semantic-ui.com/modules/dropdown#remote

>All comments

The Select has the same onChange signature as the Dropdown:

<Select onChange={(e, { value }) => alert(value)} />

Working example here: http://react.semantic-ui.com/modules/dropdown#remote

Was this page helpful?
0 / 5 - 0 ratings