shineout 3.5.1-beta.6 → 3.5.1-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
@@ -500,5 +500,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
500
500
  // 此文件由脚本自动生成,请勿直接修改。
501
501
  // This file was generated automatically by a script. Please do not modify it directly.
502
502
  var _default = exports.default = {
503
- version: '3.5.1-beta.6'
503
+ version: '3.5.1-fix.1'
504
504
  };
package/dist/shineout.js CHANGED
@@ -12002,7 +12002,7 @@ var handleStyle = function handleStyle(style) {
12002
12002
  };
12003
12003
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12004
12004
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12005
- /* harmony default export */ var version = ('3.5.1-beta.6');
12005
+ /* harmony default export */ var version = ('3.5.1-fix.1');
12006
12006
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12007
12007
 
12008
12008
 
@@ -33275,19 +33275,18 @@ function useInputAble(props) {
33275
33275
  var render = useRender(syncValue);
33276
33276
  var shouldUseState = delay || !control;
33277
33277
  var value = shouldUseState ? stateValue : valuePo;
33278
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
33279
- if (context.timer) {
33280
- clearTimeout(context.timer);
33281
- context.timer = null;
33282
- }
33278
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
33283
33279
  if (delay && control && props.value !== stateValue) {
33284
33280
  changeStateValue(props.value);
33281
+ } else if (context.timer) {
33282
+ clearTimeout(context.timer);
33283
+ context.timer = null;
33285
33284
  }
33286
33285
  }, [props.value, delay, control]);
33287
33286
  var forceDelayChange = use_persist_fn(function () {
33288
- if (context.timer && context.delayChange) {
33287
+ if (context.delayChange) context.delayChange();
33288
+ if (context.timer) {
33289
33289
  clearTimeout(context.timer);
33290
- context.delayChange();
33291
33290
  context.timer = null;
33292
33291
  context.delayChange = null;
33293
33292
  }
@@ -66418,7 +66417,7 @@ var upload_interface = __webpack_require__(8821);
66418
66417
 
66419
66418
 
66420
66419
  /* harmony default export */ var src_0 = ({
66421
- version: '3.5.1-beta.6'
66420
+ version: '3.5.1-fix.1'
66422
66421
  });
66423
66422
  }();
66424
66423
  /******/ return __webpack_exports__;