Эх сурвалжийг харах

Stag suggest - show option only when in focus

Vijayakrishnan 3 жил өмнө
parent
commit
64ac222671

+ 3 - 0
public/css/style.css

@@ -719,6 +719,9 @@ input.search_field, textarea.search_field {
     right: auto;
     right: auto;
     min-width: 100%;
     min-width: 100%;
 }
 }
+[stag-suggest]:not(:focus)+.stag-suggestions-container {
+    display: none !important
+}
 .suggestions-outer .suggest-item, .suggestions-outer .no-suggest-items {
 .suggestions-outer .suggest-item, .suggestions-outer .no-suggest-items {
     padding: 0.25rem 0.5rem;
     padding: 0.25rem 0.5rem;
     text-decoration: none;
     text-decoration: none;