dtable-ui-component 7.0.0-ahn.18 → 7.0.0-ahn.19

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.
@@ -24,6 +24,8 @@
24
24
  line-height: 1.6;
25
25
  width: 100%;
26
26
  padding: .375rem 1rem;
27
+ border-top-left-radius: 4px;
28
+ border-top-right-radius: 4px;
27
29
  }
28
30
 
29
31
  .select-search-control:focus {
@@ -11,6 +11,7 @@ var _SelectOptionGroup = _interopRequireDefault(require("../SelectOptionGroup"))
11
11
  var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
  var _ModalPortal = _interopRequireDefault(require("../ModalPortal"));
14
+ var _utils = require("../utils/utils");
14
15
  require("./index.css");
15
16
  var _jsxRuntime = require("react/jsx-runtime");
16
17
  class DTableCustomizeSelect extends _react.Component {
@@ -23,7 +24,7 @@ class DTableCustomizeSelect extends _react.Component {
23
24
  so it can be closed when other select is clicked.
24
25
  */
25
26
  if (this.state.isShowSelectOptions) event.stopPropagation();
26
- let eventClassName = event.target.className;
27
+ const eventClassName = (0, _utils.getEventClassName)(event);
27
28
  if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === 'seatable-select-search') return;
28
29
  // Prevent closing by pressing the spacebar in the search input
29
30
  if (event.target.value === '') return;
@@ -32,7 +33,7 @@ class DTableCustomizeSelect extends _react.Component {
32
33
  });
33
34
  };
34
35
  this.onClick = event => {
35
- if (this.props.isShowSelected && event.target.className.includes('icon-fork-number')) {
36
+ if (this.props.isShowSelected && (0, _utils.getEventClassName)(event).includes('icon-fork-number')) {
36
37
  return;
37
38
  }
38
39
  if (!this.selector.contains(event.target)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "7.0.0ahn.18",
3
+ "version": "7.0.0ahn.19",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",