dtable-ui-component 4.3.10-alpha6 → 4.3.11

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.
@@ -9,7 +9,7 @@ import './index.css';
9
9
  class CollaboratorEditor extends React.Component {
10
10
  constructor(props) {
11
11
  super(props);
12
- this.onDocumentMouseDown = e => {
12
+ this.onMouseDown = e => {
13
13
  if (this.editorContainer !== e.target && !this.editorContainer.contains(e.target)) {
14
14
  this.onClosePopover();
15
15
  }
@@ -129,10 +129,10 @@ class CollaboratorEditor extends React.Component {
129
129
  };
130
130
  }
131
131
  componentDidMount() {
132
- document.addEventListener('mousedown', this.onDocumentMouseDown);
132
+ document.addEventListener('mousedown', this.onMouseDown);
133
133
  }
134
134
  componentWillUnmount() {
135
- document.removeEventListener('mousedown', this.onDocumentMouseDown);
135
+ document.removeEventListener('mousedown', this.onMouseDown);
136
136
  }
137
137
  render() {
138
138
  let {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "4.3.10-alpha6",
3
+ "version": "4.3.11",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "2.0.5",