Skip to content

Commit 1edf8cc

Browse files
authored
Merge pull request #548 from hossein-zare/dev-5.x
Bugfix: disabledStyle
2 parents c4d56d1 + a6b2e7f commit 1edf8cc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-dropdown-picker",
3-
"version": "5.4.1",
3+
"version": "5.4.2",
44
"description": "A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.",
55
"keywords": [
66
"picker",

src/components/Picker.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,9 @@ function Picker({
741741
zIndex: _zIndex
742742
},
743743
...[style].flat(),
744+
...[_disabledStyle].flat(),
744745
pickerNoBorderRadius
745-
]), [rtl, style, pickerNoBorderRadius, _zIndex, THEME]);
746+
]), [rtl, style, _disabledStyle, pickerNoBorderRadius, _zIndex, THEME]);
746747

747748
/**
748749
* The placeholder style.
@@ -818,9 +819,8 @@ function Picker({
818819
const _containerStyle = useMemo(() => ([
819820
THEME.container,
820821
zIndexContainer,
821-
...[containerStyle].flat(),
822-
...[_disabledStyle].flat()
823-
]), [zIndexContainer, containerStyle, disabled, _disabledStyle, THEME]);
822+
...[containerStyle].flat()
823+
]), [zIndexContainer, containerStyle, THEME]);
824824

825825
/**
826826
* The arrow icon container style.

0 commit comments

Comments
 (0)