We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e6ff67 commit e1af026Copy full SHA for e1af026
src/ListBox.js
@@ -61,7 +61,6 @@ export default class ListBox extends React.Component {
61
childrenField: 'children',
62
labelInValue: false,
63
tabIndex: 0,
64
- items: [],
65
emptyLabel: 'Not Found',
66
enableDownUpSelect: true,
67
onFocus: noop,
@@ -455,7 +454,7 @@ export default class ListBox extends React.Component {
455
454
return emptyLabel;
456
}
457
458
- const childs = items.length ?
+ const childs = Array.isArray(items) ?
459
this.renderListItems(items, selectedMap) :
460
this.renderListChild(children, selectedMap);
461
0 commit comments