Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 98df43a

Browse files
committed
fix: fix bind in extend surcharge
1 parent 1feb0ab commit 98df43a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/setWithComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React from 'react'
33

44
const setWithComponent = (StyledComponent, BaseComponent) => {
5-
const originalExtend = StyledComponent.extend.bind(this)
5+
const originalExtend = StyledComponent.extend.bind(StyledComponent)
66
Object.defineProperty(StyledComponent, 'extend', {
77
get() {
88
return (...args) => {

0 commit comments

Comments
 (0)