Skip to content

Commit

Permalink
Merge pull request #318 from hossein-zare/dev-5.x
Browse files Browse the repository at this point in the history
5.1.14
  • Loading branch information
hossein-zare authored May 13, 2021
2 parents 12e1f6b + 14b25d9 commit cf484e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-dropdown-picker",
"version": "5.1.13",
"version": "5.1.14",
"description": "A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.",
"keywords": [
"picker",
Expand Down
4 changes: 2 additions & 2 deletions src/components/RenderListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ function RenderListItem({
* onPress.
*/
const __onPress = useCallback(() => {
if (parent === null && ! categorySelectable) {
if (parent === null && ! categorySelectable && selectable !== true) {
return;
}

onPress(item, custom);
}, [onPress, parent, categorySelectable, label, value, custom]);

return (
<TouchableOpacity style={_listItemContainerStyle} onPress={__onPress} disabled={selectable || disabled}>
<TouchableOpacity style={_listItemContainerStyle} onPress={__onPress} disabled={selectable === false || disabled}>
{IconComponent}
<Text style={_listItemLabelStyle}>
{label}
Expand Down

0 comments on commit cf484e7

Please sign in to comment.