This commit is contained in:
Nathan Bierema 2020-09-02 15:42:11 -04:00
parent 6647f00141
commit 0dda9e463c
2 changed files with 8 additions and 8 deletions

View File

@ -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
};

View File

@ -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',
},
};