Skip to content

Commit 07b77c5

Browse files
author
Oláh István
committed
Fix onLaneScroll, onCardClick, onLaneClick, onCardDelete, onCardAdd console warnings
1 parent 0873274 commit 07b77c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/BoardContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class BoardContainer extends Component {
117117
}
118118

119119
render() {
120-
const {id, reducerData, draggable, laneDraggable, laneDragClass, style, onDataChange, addLaneTitle, editable, canAddLanes, ...otherProps} = this.props
120+
const {id, reducerData, draggable, laneDraggable, laneDragClass, style, onDataChange, onLaneScroll, onCardClick, onLaneClick, onCardDelete, onCardAdd, addLaneTitle, editable, canAddLanes, ...otherProps} = this.props
121121
// Stick to whitelisting attributes to segregate board and lane props
122122
const passthroughProps = pick(this.props, [
123123
'onLaneScroll',

src/components/Lane.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class Lane extends Component {
228228

229229
render() {
230230
const {loading, isDraggingOver} = this.state
231-
const {id, onLaneClick, onCardAdd, ...otherProps} = this.props
231+
const {id, onLaneClick, onLaneScroll, onCardClick, onCardAdd, onCardDelete, ...otherProps} = this.props
232232
return (
233233
<Section {...otherProps} key={id} onClick={() => onLaneClick && onLaneClick(id)} draggable={false} className="react-trello-lane">
234234
{this.renderHeader()}

0 commit comments

Comments
 (0)