Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1116 from metasfresh/dev-1098
Browse files Browse the repository at this point in the history
#1098 Fix undefined enableAutofocus function on List component
  • Loading branch information
metasnw authored Aug 4, 2017
2 parents ea54f60 + e9535bf commit d646668
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/widget/List/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ class List extends Component {
enableAutofocus
} = this.props;

enableAutofocus();
if (enableAutofocus) {
enableAutofocus();
}

let optionKey = option && Object.keys(option)[0];
if (this.previousValue !== (option && option[optionKey] )) {
Expand Down

0 comments on commit d646668

Please sign in to comment.