shineout 3.5.5-beta.7 → 3.5.5-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
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.5-beta.7'
510
+ version: '3.5.5-fix.1'
511
511
  };
package/dist/shineout.js CHANGED
@@ -12040,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
12040
12040
  };
12041
12041
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12042
12042
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12043
- /* harmony default export */ var version = ('3.5.5-beta.7');
12043
+ /* harmony default export */ var version = ('3.5.5-fix.1');
12044
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12045
12045
 
12046
12046
 
@@ -33450,19 +33450,18 @@ function useInputAble(props) {
33450
33450
  var render = useRender(syncValue);
33451
33451
  var shouldUseState = delay || !control;
33452
33452
  var value = shouldUseState ? stateValue : valuePo;
33453
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
33454
- if (context.timer) {
33455
- clearTimeout(context.timer);
33456
- context.timer = null;
33457
- }
33453
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
33458
33454
  if (delay && control && props.value !== stateValue) {
33459
33455
  changeStateValue(props.value);
33456
+ } else if (context.timer) {
33457
+ clearTimeout(context.timer);
33458
+ context.timer = null;
33460
33459
  }
33461
33460
  }, [props.value, delay, control]);
33462
33461
  var forceDelayChange = use_persist_fn(function () {
33463
- if (context.timer && context.delayChange) {
33462
+ if (context.delayChange) context.delayChange();
33463
+ if (context.timer) {
33464
33464
  clearTimeout(context.timer);
33465
- context.delayChange();
33466
33465
  context.timer = null;
33467
33466
  context.delayChange = null;
33468
33467
  }
@@ -67190,7 +67189,7 @@ var upload_interface = __webpack_require__(8821);
67190
67189
 
67191
67190
 
67192
67191
  /* harmony default export */ var src_0 = ({
67193
- version: '3.5.5-beta.7'
67192
+ version: '3.5.5-fix.1'
67194
67193
  });
67195
67194
  }();
67196
67195
  /******/ return __webpack_exports__;