fix(pos-app): hide "clear search" button when input field is manually cleared

This commit is contained in:
Umar Bolatov 2019-09-01 11:18:46 -07:00
parent bc8e7ce888
commit eae913f809

View file

@ -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();
}
});