From 9669a2be78f2f5f0024673a3dfe44e79564c9e5e Mon Sep 17 00:00:00 2001
From: Hendrik Leppelsack <hendrik@leppelsack.de>
Date: Mon, 2 Nov 2015 12:14:54 +0100
Subject: [PATCH] keep searchbox open if it is in action

---
 core/css/styles.css            | 3 ++-
 core/templates/layout.user.php | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/css/styles.css b/core/css/styles.css
index 1368d8bfa5..08969e1d10 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -329,7 +329,8 @@ input:disabled+label, input:disabled:hover+label, input:disabled:focus+label {
 	opacity: .7;
 }
 .searchbox input[type="search"]:focus,
-.searchbox input[type="search"]:active {
+.searchbox input[type="search"]:active,
+.searchbox input[type="search"]:valid {
 	color: #fff;
 	width: 155px;
 	max-width: 50%;
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 4d9e3ae93d..c3d2e50cbc 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -103,7 +103,7 @@
 					<?php p($l->t('Search'));?>
 				</label>
 				<input id="searchbox" class="svg" type="search" name="query"
-					value=""
+					value="" required
 					autocomplete="off" tabindex="5">
 			</form>
 		</div></header>
-- 
GitLab