From efb2e4f115dbe83243123710dd3f5358a6e2eb53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Morineau?= Date: Tue, 22 Aug 2017 07:33:17 +0200 Subject: [PATCH] canAutoPosition defaulted to true --- README.md | 4 ++-- lib/SuperSelectField.js | 2 +- src/SuperSelectField.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9f52050..9ad92cc 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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).
/!\ REQUIRED: each object must expose a 'value' property. | diff --git a/lib/SuperSelectField.js b/lib/SuperSelectField.js index f89ddee..72333c7 100644 --- a/lib/SuperSelectField.js +++ b/lib/SuperSelectField.js @@ -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, diff --git a/src/SuperSelectField.js b/src/SuperSelectField.js index f53709f..67c07fc 100644 --- a/src/SuperSelectField.js +++ b/src/SuperSelectField.js @@ -730,7 +730,7 @@ SelectField.defaultProps = { checkedIcon: , unCheckedIcon: , menuCloseButton: null, - canAutoPosition: false, + canAutoPosition: true, multiple: false, disabled: false, nb2show: 5,