dtable-ui-component 4.4.30-beta → 4.4.30-beta1
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.
|
@@ -77,7 +77,7 @@ class SimpleLongTextFormatter extends _react.default.Component {
|
|
|
77
77
|
// in case that there is no `modal-wrapper`
|
|
78
78
|
if (!document.getElementById('modal-wrapper')) return;
|
|
79
79
|
this.clearOpenPreviewTimer();
|
|
80
|
-
if (this.props.value
|
|
80
|
+
if (this.props.value) {
|
|
81
81
|
this.openPreviewTimer = setTimeout(() => {
|
|
82
82
|
const style = this.ref.getBoundingClientRect();
|
|
83
83
|
this.formatterStyle = style;
|
|
@@ -117,7 +117,8 @@ class SimpleLongTextFormatter extends _react.default.Component {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
componentWillUnmount() {
|
|
120
|
-
this.
|
|
120
|
+
this.clearOpenPreviewTimer();
|
|
121
|
+
this.clearClosePreviewTimer();
|
|
121
122
|
}
|
|
122
123
|
render() {
|
|
123
124
|
const {
|