Skip to content

Commit 244339f

Browse files
committed
fix(Event Handling): Clicking on the card should not prevent default click behaviour
This was added as a side-effect when using react-smooth-dnd for DnD. This is no longer applicable #150
1 parent 76f33b5 commit 244339f

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/components/Lane.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class Lane extends Component {
7878
const {onCardClick} = this.props
7979
onCardClick && onCardClick(card.id, card.metadata, card.laneId)
8080
e.stopPropagation()
81-
e.preventDefault()
8281
}
8382

8483
showEditableCard = () => {

src/styles/Base.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export const Section = styled.section`
5252
`
5353

5454
export const LaneHeader = styled(Header)`
55-
z-index: 1000;
5655
padding: 0px 5px;
5756
margin-bottom: 0px;
5857
`

stories/EditableBoard.story.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ storiesOf('Editable Board', module)
8484
.add(
8585
'Add New Lane',
8686
withInfo('Allow adding new lane')(() => {
87-
return <Board data={smallData} editable />
87+
return <Board data={smallData} editable canAddLanes />
8888
})
8989
)

0 commit comments

Comments
 (0)