Skip to content

Commit f00ca2e

Browse files
committed
feat: preserve component prototype chain when copying properties in uniwind utils
1 parent 170d484 commit f00ca2e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/uniwind/src/components/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const copyComponentProperties = (Component: any, UniwindComponent: any) =
99
})
1010

1111
UniwindComponent.displayName = Component.displayName
12+
UniwindComponent.prototype = Object.getPrototypeOf(Component)
1213

1314
return UniwindComponent
1415
}

0 commit comments

Comments
 (0)