From eae913f809d29238a794d697b1f9dacd5585a3c5 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sun, 1 Sep 2019 11:18:46 -0700 Subject: [PATCH] fix(pos-app): hide "clear search" button when input field is manually cleared --- BTCPayServer/wwwroot/cart/js/cart.jquery.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BTCPayServer/wwwroot/cart/js/cart.jquery.js b/BTCPayServer/wwwroot/cart/js/cart.jquery.js index 4c6256cad..d0e2d84ff 100644 --- a/BTCPayServer/wwwroot/cart/js/cart.jquery.js +++ b/BTCPayServer/wwwroot/cart/js/cart.jquery.js @@ -113,6 +113,8 @@ $(document).ready(function(){ var $list = $('#js-pos-list').find(".card-title:not(:icontains('" + $.escapeSelector(str) + "'))"); $list.parents('.card-wrapper').hide(); $('.js-search-reset').show(); + } else if (str.length === 0) { + $('.js-search-reset').hide(); } });