dtable-ui-component 6.0.102-alpha.1 → 6.0.102-alpha.2
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.
|
@@ -265,7 +265,6 @@ class FilterItem extends _react.default.Component {
|
|
|
265
265
|
} else if (type === _constants.INPUT_CMP_TYPE_MAP.NUMBER) {
|
|
266
266
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_NumberEditor.default, {
|
|
267
267
|
ref: ref => this.numberEditor = ref,
|
|
268
|
-
isInModal: isInModal,
|
|
269
268
|
column: filterColumn,
|
|
270
269
|
value: filterTerm,
|
|
271
270
|
onCommit: this.onFilterTermNumberChanged,
|
|
@@ -63,7 +63,11 @@ class NumberEditor extends _react.default.Component {
|
|
|
63
63
|
return this.input.querySelector('input:not([type=hidden])');
|
|
64
64
|
};
|
|
65
65
|
this.onBlur = () => {
|
|
66
|
-
|
|
66
|
+
if (this.props.onCommit) {
|
|
67
|
+
this.props.onCommit(this.getValue());
|
|
68
|
+
} else if (this.props.onBlur) {
|
|
69
|
+
this.props.onBlur();
|
|
70
|
+
}
|
|
67
71
|
};
|
|
68
72
|
this.setInputRef = input => {
|
|
69
73
|
this.input = input;
|