Skip to content

Commit

Permalink
Do not invoke _showAutoComplete when there is no node found (see jo…
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Aug 15, 2019
1 parent b05af3d commit e4385c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/treemode.js
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ treemode._onEvent = function (event) {
this._onKeyDown(event);
}

if (event.type === 'focus') {
if (node && event.type === 'focus') {
this.focusTarget = event.target;
if (this.options.autocomplete && this.options.autocomplete.trigger === 'focus') {
this._showAutoComplete(event.target);
Expand Down

0 comments on commit e4385c0

Please sign in to comment.