diff --git a/assets/js/common.js b/assets/js/common.js index 022a753..586c3ba 100644 --- a/assets/js/common.js +++ b/assets/js/common.js @@ -394,6 +394,10 @@ } if (e.key === 'Escape' && isInput) { + if (active.value && active.matches && active.matches('[data-example-search], [data-change-search], input[type="search"]')) { + active.value = ''; + active.dispatchEvent(new Event('input', { bubbles: true })); + } active.blur(); } } catch (err) {}