aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pages/vomnibar.coffee6
-rw-r--r--pages/vomnibar.css2
2 files changed, 4 insertions, 4 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()
diff --git a/pages/vomnibar.css b/pages/vomnibar.css
index c4bc0008..2042a6c4 100644
--- a/pages/vomnibar.css
+++ b/pages/vomnibar.css
@@ -3,7 +3,7 @@
#vomnibar ol, #vomnibar ul {
list-style: none;
- display: block;
+ display: none;
}
#vomnibar {