dtable-ui-component 0.2.6 → 0.2.7

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.
@@ -65,7 +65,12 @@ var Toast = /*#__PURE__*/function (_React$PureComponent) {
65
65
  height: 0
66
66
  };
67
67
 
68
- _this.close = function () {
68
+ _this.close = function (event) {
69
+ if (event) {
70
+ event.nativeEvent.stopImmediatePropagation();
71
+ event.stopPropagation();
72
+ }
73
+
69
74
  _this.clearCloseTimer();
70
75
 
71
76
  _this.setState({
@@ -162,8 +167,8 @@ var Toast = /*#__PURE__*/function (_React$PureComponent) {
162
167
  title: _this2.props.title,
163
168
  children: _this2.props.children || '',
164
169
  isRemoveable: _this2.props.hasCloseButton,
165
- onRemove: function onRemove() {
166
- return _this2.close();
170
+ onRemove: function onRemove(event) {
171
+ return _this2.close(event);
167
172
  }
168
173
  })));
169
174
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",