Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0056585 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Events for Payments in SCO | minor | have not tried | 2024-09-30 12:12 | 2024-10-29 15:44 | |||
Reporter | ignacio_deandres | View Status | public | |||||
Assigned To | eugen_hamuraru | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | main | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0056585: Incorrect behaviour in the customer data collection keyboard for the Request String component | |||||||
Description | 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. | |||||||
Steps To Reproduce | 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. | |||||||
Proposed Solution | 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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||
|
Notes | |
(0170932) hgbot (developer) 2024-10-25 08:23 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1623 [^] |
(0171113) hgbot (developer) 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 (developer) 2024-10-29 15:44 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1623 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2024-09-30 12:12 | ignacio_deandres | New Issue | |
2024-09-30 12:12 | ignacio_deandres | Assigned To | => Triage Platform Conn |
2024-09-30 12:12 | ignacio_deandres | Triggers an Emergency Pack | => No |
2024-09-30 12:12 | ignacio_deandres | Relationship added | related to 0056330 |
2024-10-01 16:21 | adrianromero | Status | new => acknowledged |
2024-10-11 08:23 | adrianromero | Assigned To | Triage Platform Conn => adrianromero |
2024-10-11 08:23 | adrianromero | Assigned To | adrianromero => ignacio_deandres |
2024-10-22 16:09 | adrianromero | Assigned To | ignacio_deandres => eugen_hamuraru |
2024-10-25 08:23 | hgbot | Note Added: 0170932 | |
2024-10-29 15:44 | hgbot | Resolution | open => fixed |
2024-10-29 15:44 | hgbot | Status | acknowledged => closed |
2024-10-29 15:44 | hgbot | Fixed in Version | => 25Q1 |
2024-10-29 15:44 | hgbot | Note Added: 0171113 | |
2024-10-29 15:44 | hgbot | Note Added: 0171114 |
Copyright © 2000 - 2009 MantisBT Group |