@hipay/hipay-material-ui 3.6.2 → 3.6.3
Sign up to get free protection for your applications and to get access to all the features.
package/HiCell/CellTextStyled.js
CHANGED
@@ -70,7 +70,7 @@ var CellTextStyled = function CellTextStyled(_ref) {
|
|
70
70
|
title = _ref$title === void 0 ? '' : _ref$title,
|
71
71
|
_ref$align = _ref.align,
|
72
72
|
align = _ref$align === void 0 ? 'left' : _ref$align;
|
73
|
-
var valueString = label ? label.toString() : value.toString();
|
73
|
+
var valueString = label ? label.toString() : value ? value.toString() : "";
|
74
74
|
|
75
75
|
if (isButton) {
|
76
76
|
return _react.default.createElement(_HiButton.default, {
|
@@ -201,6 +201,15 @@ function (_React$PureComponent) {
|
|
201
201
|
if (_this.props.onBlurInput) {
|
202
202
|
_this.props.onBlurInput(event);
|
203
203
|
}
|
204
|
+
} else if (event.relatedTarget && event.relatedTarget.attributes.disabled && _this.overlay && !_this.overlay.contains(event.relatedTarget)) {
|
205
|
+
_this.setState({
|
206
|
+
options: [],
|
207
|
+
suggestionFocusIndex: -1
|
208
|
+
});
|
209
|
+
|
210
|
+
if (_this.textInput) {
|
211
|
+
_this.textInput.focus();
|
212
|
+
}
|
204
213
|
}
|
205
214
|
};
|
206
215
|
|
@@ -70,7 +70,7 @@ var CellTextStyled = function CellTextStyled(_ref) {
|
|
70
70
|
title = _ref$title === void 0 ? '' : _ref$title,
|
71
71
|
_ref$align = _ref.align,
|
72
72
|
align = _ref$align === void 0 ? 'left' : _ref$align;
|
73
|
-
var valueString = label ? label.toString() : value.toString();
|
73
|
+
var valueString = label ? label.toString() : value ? value.toString() : "";
|
74
74
|
|
75
75
|
if (isButton) {
|
76
76
|
return _react.default.createElement(_HiButton.default, {
|
@@ -201,6 +201,15 @@ function (_React$PureComponent) {
|
|
201
201
|
if (_this.props.onBlurInput) {
|
202
202
|
_this.props.onBlurInput(event);
|
203
203
|
}
|
204
|
+
} else if (event.relatedTarget && event.relatedTarget.attributes.disabled && _this.overlay && !_this.overlay.contains(event.relatedTarget)) {
|
205
|
+
_this.setState({
|
206
|
+
options: [],
|
207
|
+
suggestionFocusIndex: -1
|
208
|
+
});
|
209
|
+
|
210
|
+
if (_this.textInput) {
|
211
|
+
_this.textInput.focus();
|
212
|
+
}
|
204
213
|
}
|
205
214
|
};
|
206
215
|
|