From e773a3d0c22b6de9ccee1a26968299a14dad7c54 Mon Sep 17 00:00:00 2001 From: Johan Kim Date: Tue, 14 Nov 2017 16:14:11 +0900 Subject: [PATCH] add options PropType to object Currently only accept `array`. but some examples are use `object` So i add `object` of PropTypes --- components/ModalDropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ModalDropdown.js b/components/ModalDropdown.js index 7690247..e41300d 100644 --- a/components/ModalDropdown.js +++ b/components/ModalDropdown.js @@ -31,7 +31,7 @@ export default class ModalDropdown extends Component { disabled: PropTypes.bool, defaultIndex: PropTypes.number, defaultValue: PropTypes.string, - options: PropTypes.array, + options: PropTypes.oneOfType([PropTypes.object, PropTypes.array]), accessible: PropTypes.bool, animated: PropTypes.bool,