Openbravo Issue Tracking System - POS2
View Issue Details
0049916POS2POSpublic2022-07-31 11:522022-08-05 13:47
AugustoMauch 
AugustoMauch 
normalminorhave not tried
closedfixed 
5
 
22Q4 
No
0049916: Clearing and minimizing the product search input now takes two clicks, used to take one single click
When in product search mode, if the arrow-back button is clicked the search mode is supposed to be left, and its search input emptied and minified.

This action used to occur when doing a single click on the back button but now it takes two clicks, see attached gif.
- Open WebPOS
- Focus the search input, write something (i.e. ava)
- Check that the search is done properly
- Click on the back button to the left of the search input. Check that the search mode is exited, but that the search input is not input and is still maximized
- Check again on the back button. Now the window looks as expected
No tags attached.
gif BackSearch.gif (224,793) 2022-07-31 11:53
https://issues.openbravo.com/file_download.php?file_id=17357&type=bug
gif
Issue History
2022-07-31 11:52AugustoMauchNew Issue
2022-07-31 11:52AugustoMauchAssigned To => AugustoMauch
2022-07-31 11:52AugustoMauchTriggers an Emergency Pack => No
2022-07-31 11:53AugustoMauchFile Added: BackSearch.gif
2022-07-31 12:17hgbotNote Added: 0139738
2022-07-31 12:18AugustoMauchStatusnew => scheduled
2022-08-05 13:47hgbotResolutionopen => fixed
2022-08-05 13:47hgbotStatusscheduled => closed
2022-08-05 13:47hgbotFixed in Version => 22Q4
2022-08-05 13:47hgbotNote Added: 0139922
2022-08-05 13:47hgbotNote Added: 0139923

Notes
(0139738)
hgbot   
2022-07-31 12:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1112 [^]
(0139922)
hgbot   
2022-08-05 13:47   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 950f1c58ed7a27e53ea8d942721c443e7b6f03cd
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 05-08-2022 11:46:22
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/950f1c58ed7a27e53ea8d942721c443e7b6f03cd [^]

Fixes ISSUE-49916: Exiting search mode should take a single click

Now when rendering the search input, one of the useEffect hooks will make sure the input is emptied and
minified if the search mode should not be active

---
M web-jspack/org.openbravo.pos2/src/components/ProductSearch/SearchInput/SearchInput.jsx
---
(0139923)
hgbot   
2022-08-05 13:47   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1112 [^]