AdelRedaa97 / react-native-select-dropdown

react-native-select-dropdown is a highly customized dropdown | select | picker | menu for react native that works for andriod and iOS platforms.
MIT License
314 stars 134 forks source link

avoid close dropdown-menu after selecting item #114

Open fatshotty opened 1 year ago

fatshotty commented 1 year ago

Hi, is it possibile to add property doNotCloseOnSelect={true} in order to avoid close dropdown menu after selecting item? I mean: I'm using this package to manage multi-select dropdown. It is working well, but once select item, dropdown closes itself. I need to do it still remain opened

thanks in advance

fatshotty commented 1 year ago

i mean something like that:

if ( !doNotCloseOnSelect ) {
  closeDropdown();
}

on line: https://github.com/AdelRedaa97/react-native-select-dropdown/blob/4e8c9d22c6d85c45179d330247bc62f1ecacc64e/src/SelectDropdown.js#L116

jakemadash commented 4 months ago

Seconding this request. Although there's a workaround to call openDropdown onBlur or onSelect, it causes a flashing effect with the dropdown closing and then quickly reopening, which isn't ideal.