kts-component-invoice-operate 3.2.124 → 3.2.125

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
@@ -19287,7 +19287,8 @@ function ItemNameInput$1(props) {
19287
19287
  }, []);
19288
19288
  var onBlur = React.useCallback( /*#__PURE__*/function () {
19289
19289
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
19290
- var taxCategoryData, params;
19290
+ var _searchText$target, taxCategoryData, params;
19291
+
19291
19292
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19292
19293
  while (1) {
19293
19294
  switch (_context.prev = _context.next) {
@@ -19299,7 +19300,7 @@ function ItemNameInput$1(props) {
19299
19300
  break;
19300
19301
  }
19301
19302
 
19302
- if (selectLine === null || selectLine === void 0 ? void 0 : selectLine.shorthand) {
19303
+ 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))) {
19303
19304
  _context.next = 7;
19304
19305
  break;
19305
19306
  }
package/dist/index.js CHANGED
@@ -19297,7 +19297,8 @@ function ItemNameInput$1(props) {
19297
19297
  }, []);
19298
19298
  var onBlur = React__default['default'].useCallback( /*#__PURE__*/function () {
19299
19299
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
19300
- var taxCategoryData, params;
19300
+ var _searchText$target, taxCategoryData, params;
19301
+
19301
19302
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19302
19303
  while (1) {
19303
19304
  switch (_context.prev = _context.next) {
@@ -19309,7 +19310,7 @@ function ItemNameInput$1(props) {
19309
19310
  break;
19310
19311
  }
19311
19312
 
19312
- if (selectLine === null || selectLine === void 0 ? void 0 : selectLine.shorthand) {
19313
+ 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))) {
19313
19314
  _context.next = 7;
19314
19315
  break;
19315
19316
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.124",
3
+ "version": "3.2.125",
4
4
  "scripts": {
5
5
  "dev": "dumi dev",
6
6
  "start": "dumi dev",
@@ -28,7 +28,7 @@ export default function ItemNameInput(props: {
28
28
  const onBlur = React.useCallback(async (searchText: any) => {
29
29
  try {
30
30
  if (autoComplete.onItemNameBlur) {
31
- if (!selectLine?.shorthand) {
31
+ if (!selectLine?.shorthand && !!searchText?.target?.value) {
32
32
  const taxCategoryData: any = await autoComplete.onItemNameBlur(searchText);
33
33
  if (taxCategoryData && taxCategoryData[0]) {
34
34
  const params = {