Skip to content

Commit

Permalink
fix(pos): do not reset search input on item selection (#30537)
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib authored Apr 4, 2022
1 parent 12c01e2 commit fed6603
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/selling/page/point_of_sale/pos_item_selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ erpnext.PointOfSale.ItemSelector = class {
value: "+1",
item: { item_code, batch_no, serial_no, uom, rate }
});
me.set_search_value('');
me.search_field.set_focus();
});

this.search_field.$input.on('input', (e) => {
Expand Down Expand Up @@ -328,6 +328,7 @@ erpnext.PointOfSale.ItemSelector = class {

add_filtered_item_to_cart() {
this.$items_container.find(".item-wrapper").click();
this.set_search_value('');
}

resize_selector(minimize) {
Expand Down

0 comments on commit fed6603

Please sign in to comment.