DROPDOWN AND VALUE

UI Components for React
Post Reply
jeffhatton
Posts: 6
Joined: 06 Feb 2020, 00:10

16 Feb 2020, 08:58

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?

jeffhatton
Posts: 6
Joined: 06 Feb 2020, 00:10

17 Feb 2020, 22:11

The react documentation for these controls sucks across the board.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests