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 && this.props.value.text) {
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.clearTimer();
120
+ this.clearOpenPreviewTimer();
121
+ this.clearClosePreviewTimer();
121
122
  }
122
123
  render() {
123
124
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "4.4.30beta",
3
+ "version": "4.4.30beta1",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "2.0.5",