shineout 3.8.6-beta.7 → 3.8.6-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.6-beta.7'
525
+ version: '3.8.6-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.6-beta.7');
12389
+ /* harmony default export */ var version = ('3.8.6-fix.1');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -36357,19 +36357,18 @@ function useInputAble(props) {
36357
36357
  var render = useRender(syncValue);
36358
36358
  var shouldUseState = delay || !control;
36359
36359
  var value = shouldUseState ? stateValue : valuePo;
36360
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
36361
- if (context.timer) {
36362
- clearTimeout(context.timer);
36363
- context.timer = null;
36364
- }
36360
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36365
36361
  if (delay && control && props.value !== stateValue) {
36366
36362
  changeStateValue(props.value);
36363
+ } else if (context.timer) {
36364
+ clearTimeout(context.timer);
36365
+ context.timer = null;
36367
36366
  }
36368
36367
  }, [props.value, delay, control]);
36369
36368
  var forceDelayChange = use_persist_fn(function () {
36370
- if (context.timer && context.delayChange) {
36369
+ if (context.delayChange) context.delayChange();
36370
+ if (context.timer) {
36371
36371
  clearTimeout(context.timer);
36372
- context.delayChange();
36373
36372
  context.timer = null;
36374
36373
  context.delayChange = null;
36375
36374
  }
@@ -73332,7 +73331,7 @@ var upload_interface = __webpack_require__(8821);
73332
73331
 
73333
73332
 
73334
73333
  /* harmony default export */ var src_0 = ({
73335
- version: '3.8.6-beta.7'
73334
+ version: '3.8.6-fix.1'
73336
73335
  });
73337
73336
  }();
73338
73337
  /******/ return __webpack_exports__;