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 release
old
Javi Velasco 2016-08-06 19:34:25 +02:00
commit 19543a7e3c
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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();

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.com",
"version": "1.0.2",
"version": "1.0.3",
"main": "./lib",
"author": {
"name": "React Toolbox Team",