Add support for "overflow" item in autocomplete

dev 2.0.0-beta.17
Vitaliy Filippov 2019-02-25 17:03:09 +03:00
parent 4f02b11197
commit 3035f7d0ae
2 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,7 @@ const factory = (Chip, Input) => {
selectedPosition: PropTypes.oneOf(['above', 'below', 'none']),
source: PropTypes.any,
minWidth: PropTypes.number,
more: PropTypes.string,
suggestionMatch: PropTypes.oneOf(['disabled', 'start', 'anywhere', 'word', 'none']),
theme: PropTypes.shape({
active: PropTypes.string,
@ -373,6 +374,7 @@ const factory = (Chip, Input) => {
<ul style={{bottom}}
className={theme.suggestions}>
{this.renderSuggestions()}
{this.props.more ? <li className={theme.suggestion}>{this.props.more}</li> : null}
</ul>
</Transition>
</TransitionGroup>);

View File

@ -2,7 +2,7 @@
"name": "react-toolbox",
"description": "A set of React components implementing Google's Material Design specification with the power of CSS Modules.",
"homepage": "http://www.react-toolbox.io",
"version": "2.0.0-beta.16",
"version": "2.0.0-beta.17",
"main": "./lib",
"module": "./components",
"author": {