dtable-ui-component 6.0.110-ast.8 → 6.0.110-ast.9

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.
@@ -175,7 +175,7 @@ class DTableSelect extends _react.default.Component {
175
175
  let {
176
176
  context
177
177
  } = _ref3;
178
- const isSelected = value && value.value === option.value;
178
+ const isSelected = value && (value.value === option.value || JSON.stringify(option.value) === JSON.stringify(value.value));
179
179
  if (context === 'menu') {
180
180
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
181
181
  className: "d-flex align-items-center justify-content-between",
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.MenuSelectStyle = void 0;
8
8
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
9
- // Seahub select is based on seafile-ui.css, so use the following content to override the default react-select style
10
9
  const DEFAULT_CONTROL_STYLE = {
11
10
  fontSize: '14px',
12
11
  padding: '0 1rem 0 .5rem',
@@ -63,11 +62,6 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
63
62
  marginBottom: 0
64
63
  });
65
64
  },
66
- // .react-select__menu-list)
67
- // menuList: (provided) => ({
68
- // ...provided,
69
- // paddingRight: '8px',
70
- // }),
71
65
  option: (provided, state) => {
72
66
  const {
73
67
  isDisabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.110ast.8",
3
+ "version": "6.0.110ast.9",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.4",