linear-react-components-ui 0.4.76-rc.8 → 0.4.76-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
14
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
15
|
+
|
|
14
16
|
var _inputHOC = _interopRequireDefault(require("../inputHOC"));
|
|
15
17
|
|
|
16
18
|
require("../../assets/styles/input.scss");
|
|
@@ -111,7 +113,14 @@ var InputTextBase = function InputTextBase(props) {
|
|
|
111
113
|
id: id,
|
|
112
114
|
className: helpers.getInputClass(props),
|
|
113
115
|
ref: function ref(r) {
|
|
114
|
-
if (inputRef)
|
|
116
|
+
if (inputRef) {
|
|
117
|
+
if (!_lodash["default"].isFunction(inputRef)) {
|
|
118
|
+
inputRef.current = r;
|
|
119
|
+
} else {
|
|
120
|
+
inputRef(r);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
115
124
|
if (targetRef) targetRef(r);
|
|
116
125
|
}
|
|
117
126
|
};
|