Open sylvain-hamel opened 5 years ago
Its happening with me too using version 2.0.9 On Safari is working normally
This also happen in inet11.
Hey! Any updates about the issue? Or it is are not going to be resolved?
I've solved the issue in the Firefox browser by adding draggable={cardDraggable}
to the header inside custom card. Where cardDraggable
is a prop. Also you will need to add onDragStart={e => e.preventDefault()}
to header. This is needed to avoid this issue - https://github.com/rcdexta/react-trello/issues/348
I am also facing this issue in Mozilla firefox on-card drag and not just by dragging the card header. But this is replicable even on card drag not just on the header. Need one suggestion on how to pass draggable={cardDraggable}, I am using a separate custom Component to render the card, something like this
let customCard = (data, cardDraggable) => {
return ( <CustomCard data={data}></CustomCard>)}
and then accessing the cardDraggable inside CustomCard Component something like
<header draggable={this.props.cardDraggable} onDragStart={e => e.preventDefault()}></header>
I feel I am not doing it right. Can anyone help to correct this?
Hi @Proxi01 , Can you please help me on this?
Hi,
My issue got resolved by just adding onDragStart={e => e.preventDefault()}
to the parent tag of custom card.
Thanks for the help
Regards!!! Garima
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:
onClick
(const Card = <div onClick={()=>console.log('click')}/>
)onClick
handler IS NOT called and this is correct.onClick
IS CALLED. But this is not a click, this is a drag&drop gesture.Expected behavior The
onClick
handler should not be calledDesktop (please complete the following information):