Openbravo Issue Tracking System - Retail Modules
View Issue Details
0056585Retail ModulesEvents for Payments in SCOpublic2024-09-30 12:122024-10-29 15:44
ignacio_deandres 
eugen_hamuraru 
normalminorhave not tried
closedfixed 
5
 
main 
No
0056585: Incorrect behaviour in the customer data collection keyboard for the Request String component
When the request string component pops in the SCO application mode it comes with an input component and a keyboard. The component has some inconsistencies when trying to change the caret/position in the input using the virtual keyboard.
Write something in the input of the request string component using the virtual keyboard. Move the caret to a middlish position using the cursor and type 2 or more characters. You'll notice that the cart is moved to the last position.
In the BaseKeyboard component you can add the 'debug' parameter to the Keyboard component so that you can see what's happening everytime the keyboard is used in the devtools console. This may help the developer to solve the issue. Might this be related to the 'simple-keyboard' react's component version? This is the 3.8.0 version that aparently fixes the issue.
No tags attached.
related to defect 0056330 closed cberner POS2 Customer data collection keyboard incorrect behaviour if tapping in SCO 
Issue History
2024-09-30 12:12ignacio_deandresNew Issue
2024-09-30 12:12ignacio_deandresAssigned To => Triage Platform Conn
2024-09-30 12:12ignacio_deandresTriggers an Emergency Pack => No
2024-09-30 12:12ignacio_deandresRelationship addedrelated to 0056330
2024-10-01 16:21adrianromeroStatusnew => acknowledged
2024-10-11 08:23adrianromeroAssigned ToTriage Platform Conn => adrianromero
2024-10-11 08:23adrianromeroAssigned Toadrianromero => ignacio_deandres
2024-10-22 16:09adrianromeroAssigned Toignacio_deandres => eugen_hamuraru
2024-10-25 08:23hgbotNote Added: 0170932
2024-10-29 15:44hgbotResolutionopen => fixed
2024-10-29 15:44hgbotStatusacknowledged => closed
2024-10-29 15:44hgbotFixed in Version => 25Q1
2024-10-29 15:44hgbotNote Added: 0171113
2024-10-29 15:44hgbotNote Added: 0171114

Notes
(0170932)
hgbot   
2024-10-25 08:23   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1623 [^]
(0171113)
hgbot   
2024-10-29 15:44   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: b338b7fddd1100b8c7f9993f30335ecc771c561f
Author: Eugen Hamuraru <eugen.hamuraru@openbravo.com>
Date: 29-10-2024 14:44:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/b338b7fddd1100b8c7f9993f30335ecc771c561f [^]

Fixes ISSUE-56585: Incorrect Request String component behaviour when updating input

The issue occurs because React's onChange updates the input's value in the DOM, but any attempt to set the cursor position immediately after may fail. This is due to the DOM not being fully updated yet, causing the cursor to jump to the end of the input on each change as React re-renders the component.

Implemented solution: **requestAnimationFrame**: Delays cursor positioning to the next repaint, ensuring the DOM update completes first and preventing the cursor from jumping.

---
M web-jspack/org.openbravo.core2/src/components/BaseKeyboard/keyboardUtils.js
---
(0171114)
hgbot   
2024-10-29 15:44   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1623 [^]