Skip to content

Commit

Permalink
setWrappedRef bounded with component scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
omerduzyol committed Dec 12, 2018
1 parent e5a2c13 commit 57c0160
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/withBenderStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ export default function (
childrenStyle: childrenStyle,
styleNames
};

this.setWrappedRef = this.setWrappedRef.bind(this);
}

getChildContext(): StyleContextChild<BentProps> {
Expand Down

0 comments on commit 57c0160

Please sign in to comment.