Skip to content

Commit e1af026

Browse files
committed
Modified src/ListBox.js
1 parent 2e6ff67 commit e1af026

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ListBox.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export default class ListBox extends React.Component {
6161
childrenField: 'children',
6262
labelInValue: false,
6363
tabIndex: 0,
64-
items: [],
6564
emptyLabel: 'Not Found',
6665
enableDownUpSelect: true,
6766
onFocus: noop,
@@ -455,7 +454,7 @@ export default class ListBox extends React.Component {
455454
return emptyLabel;
456455
}
457456

458-
const childs = items.length ?
457+
const childs = Array.isArray(items) ?
459458
this.renderListItems(items, selectedMap) :
460459
this.renderListChild(children, selectedMap);
461460

0 commit comments

Comments
 (0)