From 0dda9e463cfae10b4d4b8f3efa2da9bee815ef62 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 2 Sep 2020 15:42:11 -0400 Subject: [PATCH] work --- packages/devui/src/Select/Select.js | 7 +------ packages/devui/src/Select/Select.stories.js | 9 +++++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/devui/src/Select/Select.js b/packages/devui/src/Select/Select.js index 4be7e8b7..17597dac 100644 --- a/packages/devui/src/Select/Select.js +++ b/packages/devui/src/Select/Select.js @@ -23,10 +23,5 @@ Select.propTypes = { isMulti: PropTypes.bool, // multi-value input isSearchable: PropTypes.bool, // whether to enable searching feature or not value: PropTypes.any, // initial field value - // openOuterUp: PropTypes.bool, // value to control the opening direction -}; - -Select.defaultProps = { - isClearable: false, - // menuMaxHeight: 200, + menuPlacement: PropTypes.oneOf(['auto', 'bottom', 'top']), // value to control the opening direction }; diff --git a/packages/devui/src/Select/Select.stories.js b/packages/devui/src/Select/Select.stories.js index 19216620..c431ff40 100644 --- a/packages/devui/src/Select/Select.stories.js +++ b/packages/devui/src/Select/Select.stories.js @@ -33,11 +33,16 @@ const Template = ({ value, ...args }) => ( export const Default = Template.bind({}); Default.args = { value: 'one', - // menuMaxHeight: 200, + maxMenuHeight: 300, isClearable: false, isDisabled: false, isLoading: false, isMulti: false, isSearchable: true, - // openOuterUp: false, + menuPlacement: 'bottom', +}; +Default.argTypes = { + onChange: { + action: 'selected', + }, };