Skip to content

Commit

Permalink
merge of #1262 TextInput null handling (#1263)
Browse files Browse the repository at this point in the history
* #1262 TextInput null handling

null type is object, so need to check for it

* Update TextInput.js
  • Loading branch information
monte-hayward authored and alansouzati committed Mar 22, 2017
1 parent 7d785d4 commit bc96847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default class TextInput extends Component {
}

_renderLabel (suggestion) {
if (typeof suggestion === 'object') {
if (suggestion && typeof suggestion === 'object') {
return suggestion.label || suggestion.value;
} else {
return suggestion;
Expand Down

0 comments on commit bc96847

Please sign in to comment.