Skip to content

Commit

Permalink
Merge pull request #54 from Sharlaan/fix/#41-canAutoPosition
Browse files Browse the repository at this point in the history
new property canAutoPosition (default: true)
  • Loading branch information
Sharlaan authored Aug 22, 2017
2 parents e29629c + efb2e4f commit c708744
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
## Installation
`npm i material-ui-superselectfield`

This component requires 4 dependencies :
This component requires 3 dependencies :
- react
- react-dom
- material-ui
Expand All @@ -44,7 +44,7 @@ This component requires 4 dependencies :
| noMatchFound | string | 'No match found' | Placeholder text when the autocomplete filter fails. |
| anchorOrigin | object | `{ vertical: 'top', horizontal: 'left' }` | Anchor position of the menu, accepted values: `top, bottom / left, right` |
| checkPosition | string | | Position of the checkmark in multiple mode. Accepted values: `'', left, right` |
| canAutoPosition | bool | false | If present, this property allows the inner Popover component to position the menu in such way options are not hidden by the screen edges. |
| canAutoPosition | bool | true | If present, this property allows the inner Popover component to position the menu in such way options are not hidden by the screen edges. |
| multiple | bool | false | Include this property to turn superSelectField into a multi-selection dropdown. Checkboxes will appear.|
| disabled | bool | false | Include this property to disable superSelectField.|
| value | null, object, object[] | null | Selected value(s).<br>/!\ REQUIRED: each object must expose a 'value' property. |
Expand Down
2 changes: 1 addition & 1 deletion lib/SuperSelectField.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ SelectField.defaultProps = {
checkedIcon: _react2.default.createElement(_check2.default, { style: { top: 'calc(50% - 12px)' } }),
unCheckedIcon: _react2.default.createElement(_checkBoxOutlineBlank2.default, { style: { top: 'calc(50% - 12px)' } }),
menuCloseButton: null,
canAutoPosition: false,
canAutoPosition: true,
multiple: false,
disabled: false,
nb2show: 5,
Expand Down
2 changes: 1 addition & 1 deletion src/SuperSelectField.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ SelectField.defaultProps = {
checkedIcon: <CheckedIcon style={{ top: 'calc(50% - 12px)' }} />,
unCheckedIcon: <UnCheckedIcon style={{ top: 'calc(50% - 12px)' }} />,
menuCloseButton: null,
canAutoPosition: false,
canAutoPosition: true,
multiple: false,
disabled: false,
nb2show: 5,
Expand Down

0 comments on commit c708744

Please sign in to comment.