Skip to content

Commit

Permalink
Reverse the order of props and injectedProps to prioritize props
Browse files Browse the repository at this point in the history
  • Loading branch information
fand committed Dec 7, 2017
1 parent 9bcc7c5 commit 192d590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function react2angular<Props>(
}
render() {
// TODO: rm any when https://github.com/Microsoft/TypeScript/pull/13288 is merged
render(<Class {...(this.props as any)} {...this.injectedProps} />, this.$element[0])
render(<Class {...this.injectedProps} {...(this.props as any)} />, this.$element[0])
}
componentWillUnmount() {
unmountComponentAtNode(this.$element[0])
Expand Down

0 comments on commit 192d590

Please sign in to comment.