react-intl 2.7.1 → 2.7.2
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.
- package/dist/react-intl.js +6 -2
- package/dist/react-intl.js.map +1 -1
- package/dist/react-intl.min.js +1 -1
- package/dist/react-intl.min.js.map +1 -1
- package/lib/index.es.js +6 -2
- package/lib/index.js +6 -2
- package/package.json +1 -1
- package/src/inject.js +2 -2
package/dist/react-intl.js
CHANGED
|
@@ -3020,13 +3020,17 @@ function injectIntl(WrappedComponent) {
|
|
|
3020
3020
|
value: function getWrappedInstance() {
|
|
3021
3021
|
invariant_1(withRef, '[React Intl] To access the wrapped instance, ' + 'the `{withRef: true}` option must be set when calling: ' + '`injectIntl()`');
|
|
3022
3022
|
|
|
3023
|
-
return this.
|
|
3023
|
+
return this._wrappedInstance;
|
|
3024
3024
|
}
|
|
3025
3025
|
}, {
|
|
3026
3026
|
key: 'render',
|
|
3027
3027
|
value: function render() {
|
|
3028
|
+
var _this2 = this;
|
|
3029
|
+
|
|
3028
3030
|
return React__default.createElement(WrappedComponent, _extends({}, this.props, defineProperty$2({}, intlPropName, this.context.intl), {
|
|
3029
|
-
ref: withRef ?
|
|
3031
|
+
ref: withRef ? /* istanbul ignore next */function (ref) {
|
|
3032
|
+
return _this2._wrappedInstance = ref;
|
|
3033
|
+
} : null
|
|
3030
3034
|
}));
|
|
3031
3035
|
}
|
|
3032
3036
|
}]);
|