Skip to content

Commit

Permalink
Merge pull request #2136 from ethereum/fixRunCommand
Browse files Browse the repository at this point in the history
set isOpen to true only if there s autocomplete item to show
  • Loading branch information
yann300 committed Jul 1, 2019
2 parents adab5ee + 22cde50 commit 013aba8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/ui/auto-complete-popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ class AutoCompletePopup {
let autoCompleteInput = textList.length > 1 ? textList[textList.length - 1] : textList[0]
if (inputString.length >= 2) {
// more than 2 letters, start completion
this.isOpen = true
this.data._options = []
Commands.allPrograms.forEach(item => {
const program = getKeyOf(item)
Expand Down Expand Up @@ -171,7 +170,7 @@ class AutoCompletePopup {
this.removeAutoComplete()
return
}

if (this.data._options.length) this.isOpen = true
yo.update(this._view, this.render())
return true
}
Expand Down

0 comments on commit 013aba8

Please sign in to comment.