From 8a0f8c77fec7f8aa705b74d9529032610d4928d0 Mon Sep 17 00:00:00 2001 From: Oleg Belyaev Date: Mon, 24 Mar 2025 20:34:58 +0300 Subject: [PATCH] disable search input when query active --- xq/restx_dict_cached.xq | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xq/restx_dict_cached.xq b/xq/restx_dict_cached.xq index 8170228..92987b8 100644 --- a/xq/restx_dict_cached.xq +++ b/xq/restx_dict_cached.xq @@ -102,7 +102,10 @@ declare function page:header($lang as xs:string, $href-other as xs:string) { + aria-label="Search"> + {if (exists(session:get('searchQuery'))) then + attribute disabled {"1"} } + {if (not(session:get('searchQuery'))) then