shineout 3.8.3-beta.8 → 3.8.3-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.3-beta.8'
525
+ version: '3.8.3-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.3-beta.8');
12389
+ /* harmony default export */ var version = ('3.8.3-fix.1');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -36238,19 +36238,18 @@ function useInputAble(props) {
36238
36238
  var render = useRender(syncValue);
36239
36239
  var shouldUseState = delay || !control;
36240
36240
  var value = shouldUseState ? stateValue : valuePo;
36241
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
36242
- if (context.timer) {
36243
- clearTimeout(context.timer);
36244
- context.timer = null;
36245
- }
36241
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36246
36242
  if (delay && control && props.value !== stateValue) {
36247
36243
  changeStateValue(props.value);
36244
+ } else if (context.timer) {
36245
+ clearTimeout(context.timer);
36246
+ context.timer = null;
36248
36247
  }
36249
36248
  }, [props.value, delay, control]);
36250
36249
  var forceDelayChange = use_persist_fn(function () {
36251
- if (context.timer && context.delayChange) {
36250
+ if (context.delayChange) context.delayChange();
36251
+ if (context.timer) {
36252
36252
  clearTimeout(context.timer);
36253
- context.delayChange();
36254
36253
  context.timer = null;
36255
36254
  context.delayChange = null;
36256
36255
  }
@@ -73173,7 +73172,7 @@ var upload_interface = __webpack_require__(8821);
73173
73172
 
73174
73173
 
73175
73174
  /* harmony default export */ var src_0 = ({
73176
- version: '3.8.3-beta.8'
73175
+ version: '3.8.3-fix.1'
73177
73176
  });
73178
73177
  }();
73179
73178
  /******/ return __webpack_exports__;