dtable-ui-component 5.3.10-beta2 → 5.3.10-beta3
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.
|
@@ -11,6 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
var _constants = require("../../constants");
|
|
12
12
|
var _MultipleSelectEditor = _interopRequireDefault(require("../../MultipleSelectEditor"));
|
|
13
13
|
var _lang = require("../../lang");
|
|
14
|
+
var _objectUtils = _interopRequireDefault(require("../../utils/object-utils"));
|
|
14
15
|
require("./index.css");
|
|
15
16
|
class RowExpandMultipleSelectEditor extends _react.default.Component {
|
|
16
17
|
constructor(_props) {
|
|
@@ -49,14 +50,22 @@ class RowExpandMultipleSelectEditor extends _react.default.Component {
|
|
|
49
50
|
this.onToggleSelect = e => {
|
|
50
51
|
e.preventDefault();
|
|
51
52
|
e.stopPropagation();
|
|
52
|
-
|
|
53
|
+
const {
|
|
54
|
+
updateTabIndex,
|
|
55
|
+
columnIndex
|
|
56
|
+
} = this.props;
|
|
57
|
+
updateTabIndex && updateTabIndex(columnIndex);
|
|
53
58
|
this.toggleSingleSelect(true);
|
|
54
59
|
};
|
|
55
60
|
this.closeEditor = () => {
|
|
56
61
|
this.toggleSingleSelect(false);
|
|
57
62
|
};
|
|
58
63
|
this.onFocus = () => {
|
|
59
|
-
|
|
64
|
+
const {
|
|
65
|
+
updateTabIndex,
|
|
66
|
+
columnIndex
|
|
67
|
+
} = this.props;
|
|
68
|
+
updateTabIndex && updateTabIndex(columnIndex);
|
|
60
69
|
};
|
|
61
70
|
this.onChange = option => {
|
|
62
71
|
const optionKey = option[this.key];
|
|
@@ -175,9 +184,10 @@ class RowExpandMultipleSelectEditor extends _react.default.Component {
|
|
|
175
184
|
}
|
|
176
185
|
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
177
186
|
const {
|
|
178
|
-
value
|
|
187
|
+
value,
|
|
188
|
+
column
|
|
179
189
|
} = nextProps;
|
|
180
|
-
if (value !== this.props.value) {
|
|
190
|
+
if (value !== this.props.value || !_objectUtils.default.isSameObject(column, this.props.column)) {
|
|
181
191
|
this.options = this.getOptions(nextProps);
|
|
182
192
|
this.setState({
|
|
183
193
|
value
|