@@ -141,6 +141,11 @@ class Lane extends Component {
141141 }
142142 }
143143
144+ updateCard = updatedCard => {
145+ this . props . actions . updateCard ( { laneId : this . props . id , updatedCard} )
146+ this . props . onCardUpdate ( this . props . id , updatedCard )
147+ }
148+
144149 renderDragContainer = isDraggingOver => {
145150 const {
146151 id,
@@ -170,9 +175,12 @@ class Lane extends Component {
170175 className = "react-trello-card"
171176 onDelete = { onDeleteCard }
172177 onClick = { e => this . handleCardClick ( e , card ) }
178+ onChange = { updatedCard => this . updateCard ( updatedCard ) }
173179 showDeleteButton = { ! hideCardDeleteIcon }
174180 tagStyle = { tagStyle }
175181 cardDraggable = { cardDraggable }
182+ editable = { editable }
183+ t = { t }
176184 { ...card }
177185 />
178186 )
@@ -292,6 +300,7 @@ Lane.propTypes = {
292300 onBeforeCardDelete : PropTypes . func ,
293301 onCardDelete : PropTypes . func ,
294302 onCardAdd : PropTypes . func ,
303+ onCardUpdate : PropTypes . func ,
295304 onLaneDelete : PropTypes . func ,
296305 onLaneUpdate : PropTypes . func ,
297306 onLaneClick : PropTypes . func ,
@@ -312,7 +321,8 @@ Lane.defaultProps = {
312321 label : undefined ,
313322 editable : false ,
314323 onLaneUpdate : ( ) => { } ,
315- onCardAdd : ( ) => { }
324+ onCardAdd : ( ) => { } ,
325+ onCardUpdate : ( ) => { }
316326}
317327
318328const mapDispatchToProps = dispatch => ( {
0 commit comments