chenglou / chenglou/react-chosen

Get all selected options

Open
#20 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
95
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Hello, whats the best way to get array of chosen options when using chosen multiple select ?

i have implemented react chosen multiple chois in following way :

``` javascript

handleChange: function(evenet){
console.log(event.target.value);
},

render: function(){
return (

Apple
Facebook
Harvest

);
},

```

all i get in console.log is value that changed, instead of it i want to get array of all chosen options, that are selected .

i would be happy if someone can guide me :)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the multiple-select example using the Chosen component and inspect the handleChange callback, especially event.target.value. Check how the wrapper documents or forwards onChange values; done means the callback provides, or clearly documents how to obtain, the complete array of selected options.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.