Topic: Distinguish between drag and drop and click events
tjklug11 free asked 2 years ago
I have a card element that belongs to a sortable drag-and-drop grid. The card has the sortable-item class. I would like to have a click event on the card element as well. However, when implementing the click event, the card is attached to the pointer as a drag-and-drop item and carries forward to the page displayed from the click event.
Could you please explain how to separate the events so the carryover does not occur?
Unfortunately, at the moment our drag and drop does not offer such a possibility. I will add a task on our to-do list to fix it.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 3.10.2
- Device: Desktop
- Browser: Any
- OS: Mac OS 12.2
- Provided sample code: No
- Provided link: No