Skip to content

Commit 2e10821

Browse files
CptLemmingmarkusguenther
authored andcommitted
New: Support ref objects
Ala createRef
1 parent e1846fd commit 2e10821

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/components/themr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ var _default = function _default(componentName, localTheme) {
196196

197197
_defineProperty(Themed, "propTypes", _objectSpread({}, ThemedComponent.propTypes, {
198198
composeTheme: _propTypes["default"].oneOf([COMPOSE_DEEPLY, COMPOSE_SOFTLY, DONT_COMPOSE]),
199-
innerRef: _propTypes["default"].func,
199+
innerRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].object]),
200200
theme: _propTypes["default"].object,
201201
themeNamespace: _propTypes["default"].string,
202202
mapThemrProps: _propTypes["default"].func

src/components/themr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default (componentName, localTheme, options = {}) => ThemedComponent => {
7070
COMPOSE_SOFTLY,
7171
DONT_COMPOSE
7272
]),
73-
innerRef: PropTypes.func,
73+
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
7474
theme: PropTypes.object,
7575
themeNamespace: PropTypes.string,
7676
mapThemrProps: PropTypes.func

0 commit comments

Comments
 (0)