You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
You did a good job on this package.
Some time 'single select' selection option need, so I worked in my code to remove/pop the old selected array values and push the single select value.
If single select option is available by default by adding multiSelect={false} attribute like this, would be helpful.
Kind of a hacky way to do single selection, but you can use useEffect to ensure that there is only one option selected. I did it like this:
// assuming your selected options are stored in the 'selected' stateconst[selected,setSelected]=useState([])useEffect(()=>{if(selected.length>1){setSelected([selected[selected.length-1]])}},[selected])
Hi there,
You did a good job on this package.
Some time 'single select' selection option need, so I worked in my code to remove/pop the old selected array values and push the single select value.
If single select option is available by default by adding multiSelect={false} attribute like this, would be helpful.
And one more, option check box too on single select.
https://prnt.sc/19ok8b1 - direct link
Thank you
The text was updated successfully, but these errors were encountered: