Skip to content

Commit

Permalink
Merge pull request #548 from hossein-zare/dev-5.x
Browse files Browse the repository at this point in the history
Bugfix: disabledStyle
  • Loading branch information
hossein-zare authored May 6, 2022
2 parents c4d56d1 + a6b2e7f commit 1edf8cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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.4.1",
"version": "5.4.2",
"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
8 changes: 4 additions & 4 deletions src/components/Picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,9 @@ function Picker({
zIndex: _zIndex
},
...[style].flat(),
...[_disabledStyle].flat(),
pickerNoBorderRadius
]), [rtl, style, pickerNoBorderRadius, _zIndex, THEME]);
]), [rtl, style, _disabledStyle, pickerNoBorderRadius, _zIndex, THEME]);

/**
* The placeholder style.
Expand Down Expand Up @@ -818,9 +819,8 @@ function Picker({
const _containerStyle = useMemo(() => ([
THEME.container,
zIndexContainer,
...[containerStyle].flat(),
...[_disabledStyle].flat()
]), [zIndexContainer, containerStyle, disabled, _disabledStyle, THEME]);
...[containerStyle].flat()
]), [zIndexContainer, containerStyle, THEME]);

/**
* The arrow icon container style.
Expand Down

0 comments on commit 1edf8cc

Please sign in to comment.