Skip to content

Clicking an anchor in a custom card does not work #150

@sylvain-hamel

Description

@sylvain-hamel

Describe the bug
My board uses customCardLayout and my card includes a <a href="..."> tag. Clicking the hyperlink does not work.

To Reproduce
Steps to reproduce the behavior:

  • Use this code
     const Card = ()=> <a href="www.github.com">test</a>;

     <Board 
         customCardLayout
         eventBusHandle={eventBusHandle} 
         handleDragEnd={handleDragEnd} 
         hideCardDeleteIcon 
         draggable 
         editable 
         laneDraggable={false} 
         data={myData} 
         addCardLink={<span/>}>

       <Card/>

     </Board>
  • click on the link inside a card

Expected behavior

The click works and navigates away form the current page. Drag & drop should still work if I click and drag elsewhere in the card.

Desktop :

  • OS: Windown
  • Browser: Chrome
  • Version: 70

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions