shineout 3.8.7-beta.5 → 3.8.7-fix.1

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/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.8.7-beta.5'
525
+ version: '3.8.7-fix.1'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
12386
12386
  };
12387
12387
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12388
12388
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12389
- /* harmony default export */ var version = ('3.8.7-beta.5');
12389
+ /* harmony default export */ var version = ('3.8.7-fix.1');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -36370,19 +36370,18 @@ function useInputAble(props) {
36370
36370
  var render = useRender(syncValue);
36371
36371
  var shouldUseState = delay || !control;
36372
36372
  var value = shouldUseState ? stateValue : valuePo;
36373
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
36374
- if (context.timer) {
36375
- clearTimeout(context.timer);
36376
- context.timer = null;
36377
- }
36373
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36378
36374
  if (delay && control && props.value !== stateValue) {
36379
36375
  changeStateValue(props.value);
36376
+ } else if (context.timer) {
36377
+ clearTimeout(context.timer);
36378
+ context.timer = null;
36380
36379
  }
36381
36380
  }, [props.value, delay, control]);
36382
36381
  var forceDelayChange = use_persist_fn(function () {
36383
- if (context.timer && context.delayChange) {
36382
+ if (context.delayChange) context.delayChange();
36383
+ if (context.timer) {
36384
36384
  clearTimeout(context.timer);
36385
- context.delayChange();
36386
36385
  context.timer = null;
36387
36386
  context.delayChange = null;
36388
36387
  }
@@ -73348,7 +73347,7 @@ var upload_interface = __webpack_require__(8821);
73348
73347
 
73349
73348
 
73350
73349
  /* harmony default export */ var src_0 = ({
73351
- version: '3.8.7-beta.5'
73350
+ version: '3.8.7-fix.1'
73352
73351
  });
73353
73352
  }();
73354
73353
  /******/ return __webpack_exports__;