dtable-ui-component 0.1.84-beta1 → 0.1.84-beta2
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.
|
@@ -44,7 +44,7 @@ var DTablePopover = /*#__PURE__*/function (_React$Component) {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
_this.
|
|
47
|
+
_this.onClick = function (e) {
|
|
48
48
|
var canHideDTablePopover = _this.props.canHideDTablePopover;
|
|
49
49
|
if (!canHideDTablePopover) return;
|
|
50
50
|
|
|
@@ -63,14 +63,14 @@ var DTablePopover = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
_createClass(DTablePopover, [{
|
|
64
64
|
key: "componentDidMount",
|
|
65
65
|
value: function componentDidMount() {
|
|
66
|
-
document.addEventListener('
|
|
66
|
+
document.addEventListener('click', this.onClick);
|
|
67
67
|
document.addEventListener('keydown', this.onKeyDown);
|
|
68
68
|
window.addEventListener('popstate', this.onHistoryState);
|
|
69
69
|
}
|
|
70
70
|
}, {
|
|
71
71
|
key: "componentWillUnmount",
|
|
72
72
|
value: function componentWillUnmount() {
|
|
73
|
-
document.removeEventListener('
|
|
73
|
+
document.removeEventListener('click', this.onClick);
|
|
74
74
|
document.removeEventListener('keydown', this.onKeyDown);
|
|
75
75
|
window.removeEventListener('popstate', this.onHistoryState);
|
|
76
76
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/index.js
CHANGED
|
@@ -43,6 +43,6 @@ export { default as CollaboratorEditor } from './CollaboratorEditor';
|
|
|
43
43
|
export { default as DateEditor } from './DateEditor';
|
|
44
44
|
export { default as LinkEditor } from './LinkEditor'; // dtable custom
|
|
45
45
|
|
|
46
|
-
export { default as DTablePopover } from './
|
|
47
|
-
export { default as DTableSelect } from './
|
|
48
|
-
export { default as
|
|
46
|
+
export { default as DTablePopover } from './DTablePopover';
|
|
47
|
+
export { default as DTableSelect } from './DTableSelect';
|
|
48
|
+
export { default as DTableSwitch } from './DTableSwitch';
|