react-native-select-two icon indicating copy to clipboard operation
react-native-select-two copied to clipboard

Reset selected value

Open lsimontooeasy opened this issue 4 years ago • 4 comments

I try this component in my project. It's very cool but i have a question. I use it to select only one value. I want to know, how can i reset the selected value when a state change ? Can i reset the select ? :/

lsimontooeasy avatar Jul 23 '20 08:07 lsimontooeasy

Same question any update? since its already 2021 there's no update :/

michaelVictoriaDev avatar Mar 24 '21 03:03 michaelVictoriaDev

@lsimontooeasy did you find any solution ? :)

michaelVictoriaDev avatar Mar 24 '21 03:03 michaelVictoriaDev

hello, is there any news about this problem?

smailsw avatar Nov 04 '21 19:11 smailsw

Hi everyone, there is a simple hack for the problem of resetting the select:

` function handleReset(){ let resetData = data.map(d => ({...d, checked: false})) }

` if attribute checked is set to false it will reset the state

biplav11 avatar Nov 15 '21 17:11 biplav11