react-native-sectioned-multi-select
react-native-sectioned-multi-select copied to clipboard
Keep modal open until confirmed in single selection mode
Hi, first of all, thanks for this great component!
I noticed that when I add the single={true}
property to my SectionedMultiSelect
, the whole view automatically closes as soon as I change my selection once, independent of whether I have a confirm button or not. Is it possible to prevent this somehow?
I know the workaround would be to set single={false}
and then on each selection change just compare the selected items with the last ones in my custom onSelectedItemsChange
function and compute a new Array with just one single item selected, but this feels a bit hacky.
Thanks!
I'd say do that for now... Could be addded as a prop although I'm trying to limit new props as there are nearly 70 in this lib.
is there new prop to do that
@renrizzolo Any news on this prop? Thanks!
I think we can just add closeOnSingleSelect
prop and check for it here https://github.com/renrizzolo/react-native-sectioned-multi-select/blob/master/lib/sectioned-multi-select.js#L616
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Heres the patch-package file in case anyone wants to add closeOnSingleSelect prop Uploading react-native-sectioned-multi-select+0.10.0.patch…