shineout 3.6.7-beta.7 → 3.6.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
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
514
514
  // 此文件由脚本自动生成,请勿直接修改。
515
515
  // This file was generated automatically by a script. Please do not modify it directly.
516
516
  var _default = exports.default = {
517
- version: '3.6.7-beta.7'
517
+ version: '3.6.7-fix.1'
518
518
  };
package/dist/shineout.js CHANGED
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
12217
12217
  };
12218
12218
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12219
12219
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12220
- /* harmony default export */ var version = ('3.6.7-beta.7');
12220
+ /* harmony default export */ var version = ('3.6.7-fix.1');
12221
12221
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12222
12222
 
12223
12223
 
@@ -34951,19 +34951,18 @@ function useInputAble(props) {
34951
34951
  var render = useRender(syncValue);
34952
34952
  var shouldUseState = delay || !control;
34953
34953
  var value = shouldUseState ? stateValue : valuePo;
34954
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
34955
- if (context.timer) {
34956
- clearTimeout(context.timer);
34957
- context.timer = null;
34958
- }
34954
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
34959
34955
  if (delay && control && props.value !== stateValue) {
34960
34956
  changeStateValue(props.value);
34957
+ } else if (context.timer) {
34958
+ clearTimeout(context.timer);
34959
+ context.timer = null;
34961
34960
  }
34962
34961
  }, [props.value, delay, control]);
34963
34962
  var forceDelayChange = use_persist_fn(function () {
34964
- if (context.timer && context.delayChange) {
34963
+ if (context.delayChange) context.delayChange();
34964
+ if (context.timer) {
34965
34965
  clearTimeout(context.timer);
34966
- context.delayChange();
34967
34966
  context.timer = null;
34968
34967
  context.delayChange = null;
34969
34968
  }
@@ -70177,7 +70176,7 @@ var upload_interface = __webpack_require__(8821);
70177
70176
 
70178
70177
 
70179
70178
  /* harmony default export */ var src_0 = ({
70180
- version: '3.6.7-beta.7'
70179
+ version: '3.6.7-fix.1'
70181
70180
  });
70182
70181
  }();
70183
70182
  /******/ return __webpack_exports__;