I am trying to set the dropdown value so that I can display the returned value from my database in the dropdown. This is not working. Is there a problem here with the dropdown control? I have tried everything just like the documentation and the dropdown is not reflecting my populated state value.
<Dropdown value={this.state.entryForm.product_type} options={typeData} onChange={this.onProductTypeChange} placeholder="Select a Product Type" filter={true} filterPlaceholder="Search for a Product Type" filterBy="label,value" showClear={true} optionLabel="name"/>
Can someone please help me? I am not sure what to do at this point to fix this? Is there another property that sets what shows in the dropdown box besides value that I am missing?
DROPDOWN AND VALUE
-
- Posts: 6
- Joined: 06 Feb 2020, 00:10
The react documentation for these controls sucks across the board.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests