Skip to content

[Firefox specific] onClick handler on cards is triggered when drag&drop --  #202

Open
@sylvain-hamel

Description

@sylvain-hamel

Describe the bug
When you drag and drop a card, the card's onClick handler should not be called but on Firefox it is.

To Reproduce
Steps to reproduce the behavior:

  1. Create a board
  2. Use a custom card template
  3. In you card template, handle onClick ( const Card = <div onClick={()=>console.log('click')}/>)
  4. Add a card to your board
  5. On Chrome or Edge: drag the card to another column. The onClick handler IS NOT called and this is correct.
  6. Try the same on Firefox (drag the card to another column). The onClick IS CALLED. But this is not a click, this is a drag&drop gesture.

Expected behavior
The onClick handler should not be called

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox
  • Version 65

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions