Merge with master
commit
2e0b9fcb5c
|
@ -0,0 +1,11 @@
|
|||
.*rc
|
||||
.eslintignore
|
||||
.csscomb.json
|
||||
.*.yml
|
||||
.editorconfig
|
||||
karma.conf.js
|
||||
server.js
|
||||
tests.webpack.js
|
||||
webpack.config.*
|
||||
docs
|
||||
spec
|
|
@ -113,7 +113,7 @@ class Autocomplete extends React.Component {
|
|||
|
||||
source () {
|
||||
const { source } = this.props;
|
||||
if (source.hasOwnProperty(length)) {
|
||||
if (source.hasOwnProperty('length')) {
|
||||
return new Map(source.map((item) => [item, item]));
|
||||
} else {
|
||||
return new Map(Object.keys(source).map((key) => [key, source[key]]));
|
||||
|
|
Loading…
Reference in New Issue