Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0057282 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] Core | major | have not tried | 2024-11-26 12:44 | 2025-03-27 12:07 | |||
Reporter | jarmendariz | View Status | public | |||||
Assigned To | Triage Platform Base | |||||||
Priority | normal | Resolution | duplicate | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0057282: Accordion click event is called on dragging mouse/touch up | |||||||
Description | In a BaseSwipeableLine that contains a BaseAccordion as the middle element, when released the touch/mouse on a drag event, the onClick event is also called and it shouldn't. This is currently patched using an empty onClick event on the BaseAccordion, but this function is still called. | |||||||
Steps To Reproduce | This effect can be reproduced using the TicketLineGroup component. To do this, disable the TicketLineAggregatorRegistry in POS2's ob-init.js. Also add a log line in TicketLineGroupAccordion.jsx <BaseAccordion expanded={isExpanded} label={title} onChange={(e, expanded) => { setIsExpanded(expanded); }} onClick={() => { console.log('accordion click'); }} ... Then in POS: - Create a ticket with multiple lines, and close it by paying - In the new ticket, go to tickets window, and in the options click on "verified returns" on the first entry in the grid. - Select all lines and accept - Now you should see the order's ticket lines grouped on an accordion component. Notice that when dragging the header component to see the right section, the onClick event in BaseAccordion is also executed. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0177452) hgbot (developer) 2025-03-27 12:07 |
Issue exported to Jira: https://openbravo.atlassian.net/browse/RM-24185 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2024-11-26 12:44 | jarmendariz | New Issue | |
2024-11-26 12:44 | jarmendariz | Assigned To | => Triage Platform Base |
2024-11-26 12:44 | jarmendariz | OBNetwork customer | => No |
2024-11-26 12:44 | jarmendariz | Triggers an Emergency Pack | => No |
2025-03-27 12:07 | hgbot | Note Added: 0177452 | |
2025-03-27 12:07 | hgbot | Status | new => closed |
2025-03-27 12:07 | hgbot | Resolution | open => duplicate |
Copyright © 2000 - 2009 MantisBT Group |