kts-component-invoice-operate 3.2.116 → 3.2.117
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.
package/dist/index.esm.js
CHANGED
|
@@ -10993,7 +10993,8 @@ function ItemNameInput(props) {
|
|
|
10993
10993
|
}, []);
|
|
10994
10994
|
var onBlur = React.useCallback( /*#__PURE__*/function () {
|
|
10995
10995
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
10996
|
-
var taxCategoryData, params;
|
|
10996
|
+
var _searchText$target, taxCategoryData, params;
|
|
10997
|
+
|
|
10997
10998
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10998
10999
|
while (1) {
|
|
10999
11000
|
switch (_context.prev = _context.next) {
|
|
@@ -11005,7 +11006,7 @@ function ItemNameInput(props) {
|
|
|
11005
11006
|
break;
|
|
11006
11007
|
}
|
|
11007
11008
|
|
|
11008
|
-
if (selectLine === null || selectLine === void 0 ? void 0 : selectLine.shorthand) {
|
|
11009
|
+
if (!(!(selectLine === null || selectLine === void 0 ? void 0 : selectLine.shorthand) && !!(searchText === null || searchText === void 0 ? void 0 : (_searchText$target = searchText.target) === null || _searchText$target === void 0 ? void 0 : _searchText$target.value))) {
|
|
11009
11010
|
_context.next = 7;
|
|
11010
11011
|
break;
|
|
11011
11012
|
}
|
package/dist/index.js
CHANGED
|
@@ -11003,7 +11003,8 @@ function ItemNameInput(props) {
|
|
|
11003
11003
|
}, []);
|
|
11004
11004
|
var onBlur = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
11005
11005
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
11006
|
-
var taxCategoryData, params;
|
|
11006
|
+
var _searchText$target, taxCategoryData, params;
|
|
11007
|
+
|
|
11007
11008
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11008
11009
|
while (1) {
|
|
11009
11010
|
switch (_context.prev = _context.next) {
|
|
@@ -11015,7 +11016,7 @@ function ItemNameInput(props) {
|
|
|
11015
11016
|
break;
|
|
11016
11017
|
}
|
|
11017
11018
|
|
|
11018
|
-
if (selectLine === null || selectLine === void 0 ? void 0 : selectLine.shorthand) {
|
|
11019
|
+
if (!(!(selectLine === null || selectLine === void 0 ? void 0 : selectLine.shorthand) && !!(searchText === null || searchText === void 0 ? void 0 : (_searchText$target = searchText.target) === null || _searchText$target === void 0 ? void 0 : _searchText$target.value))) {
|
|
11019
11020
|
_context.next = 7;
|
|
11020
11021
|
break;
|
|
11021
11022
|
}
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ export default function ItemNameInput(props: { onChange?: (e: ChangeEvent<HTMLIn
|
|
|
26
26
|
const onBlur = React.useCallback(async (searchText: any) => {
|
|
27
27
|
try {
|
|
28
28
|
if (autoComplete.onItemNameBlur) {
|
|
29
|
-
if (!selectLine?.shorthand) {
|
|
29
|
+
if (!selectLine?.shorthand && !!searchText?.target?.value) {
|
|
30
30
|
const taxCategoryData: any = await autoComplete.onItemNameBlur(searchText);
|
|
31
31
|
if (taxCategoryData && taxCategoryData[0]) {
|
|
32
32
|
const params = {
|