Merge branch 'therealparmesh-master' into dev
* therealparmesh-master: Fixed Autocomplete such that it does not error when provided with a value prop that does not exist in the source prop. 1.0.3 releaseold
commit
19543a7e3c
|
@ -159,7 +159,7 @@ const factory = (Chip, Input) => {
|
|||
|
||||
suggestions () {
|
||||
let suggest = new Map();
|
||||
const query = this.state.query.toLowerCase().trim() || '';
|
||||
const query = (this.state.query || (!this.props.multiple ? this.props.value : '')).toLowerCase().trim() || '';
|
||||
const values = this.values();
|
||||
const source = this.source();
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ var factory = function factory(Chip, Input) {
|
|||
key: 'suggestions',
|
||||
value: function suggestions() {
|
||||
var suggest = new Map();
|
||||
var query = this.state.query.toLowerCase().trim() || '';
|
||||
var query = (this.state.query || (!this.props.multiple ? this.props.value : '')).toLowerCase().trim() || '';
|
||||
var values = this.values();
|
||||
var source = this.source();
|
||||
|
||||
|
|
|
@ -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.com",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"main": "./lib",
|
||||
"author": {
|
||||
"name": "React Toolbox Team",
|
||||
|
|
Loading…
Reference in New Issue