Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0057282
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] Coremajorhave not tried2024-11-26 12:442025-03-27 12:07
ReporterjarmendarizView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Status
Review Assigned To
OBNetwork customerNo
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0057282: Accordion click event is called on dragging mouse/touch up

DescriptionIn 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 ReproduceThis 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0177452)
hgbot (developer)
2025-03-27 12:07

Issue exported to Jira: https://openbravo.atlassian.net/browse/RM-24185 [^]

- Issue History
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
Powered by Mantis Bugtracker