Skip to content

Commit

Permalink
modify onAddition to pass full tag to allow use of additional tag pro…
Browse files Browse the repository at this point in the history
…ps in custom tagComponent
  • Loading branch information
SebastienDaniel committed Jan 14, 2022
1 parent 9ac82a9 commit 24a653a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ReactTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class ReactTags extends React.Component {
return
}

this.props.onAddition({ id: tag.id, name: tag.name })
this.props.onAddition(tag)

this.clearInput()
}
Expand Down

0 comments on commit 24a653a

Please sign in to comment.