diff options
| author | mrmr1993 | 2014-12-30 14:13:18 +0000 |
|---|---|---|
| committer | mrmr1993 | 2014-12-30 14:13:18 +0000 |
| commit | ff7a66a205516a7efcce3be47f82a4c0dde504a6 (patch) | |
| tree | 883aa24243ad46a530b28125d016bdd224e8e562 | |
| parent | 5a8000da930397e12a1dc9568ecab25c8aea7d38 (diff) | |
| download | vimium-ff7a66a205516a7efcce3be47f82a4c0dde504a6.tar.bz2 | |
Explicitly fall back to hide Vomnibar completions
| -rw-r--r-- | pages/vomnibar.coffee | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee index 170f1b42..78c954cd 100644 --- a/pages/vomnibar.coffee +++ b/pages/vomnibar.coffee @@ -61,7 +61,7 @@ class VomnibarUI @reset() reset: -> - @completionList.style.display = "none" + @completionList.style.display = "" @input.value = "" @updateTimer = null @completions = [] @@ -151,7 +151,7 @@ class VomnibarUI populateUiWithCompletions: (completions) -> # update completion list with the new data @completionList.innerHTML = completions.map((completion) -> "<li>#{completion.html}</li>").join("") - @completionList.style.display = if completions.length > 0 then "block" else "none" + @completionList.style.display = if completions.length > 0 then "block" else "" @selection = Math.min(Math.max(@initialSelectionValue, @selection), @completions.length - 1) @updateSelection() @@ -181,7 +181,7 @@ class VomnibarUI @input.addEventListener "input", @update @input.addEventListener "keydown", @onKeydown @completionList = @box.querySelector("ul") - @completionList.style.display = "none" + @completionList.style.display = "" window.addEventListener "focus", => @input.focus() |
