shineout 3.3.7-beta.7 → 3.3.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
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.3.7-beta.7'
479
+ version: '3.3.7-fix.1'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11968,7 +11968,7 @@ var handleStyle = function handleStyle(style) {
11968
11968
  };
11969
11969
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11970
11970
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11971
- /* harmony default export */ var version = ('3.3.7-beta.7');
11971
+ /* harmony default export */ var version = ('3.3.7-fix.1');
11972
11972
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11973
11973
 
11974
11974
 
@@ -31969,19 +31969,18 @@ function useInputAble(props) {
31969
31969
  var render = useRender(syncValue);
31970
31970
  var shouldUseState = delay || !control;
31971
31971
  var value = shouldUseState ? stateValue : valuePo;
31972
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
31973
- if (context.timer) {
31974
- clearTimeout(context.timer);
31975
- context.timer = null;
31976
- }
31972
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
31977
31973
  if (delay && control && props.value !== stateValue) {
31978
31974
  changeStateValue(props.value);
31975
+ } else if (context.timer) {
31976
+ clearTimeout(context.timer);
31977
+ context.timer = null;
31979
31978
  }
31980
31979
  }, [props.value, delay, control]);
31981
31980
  var forceDelayChange = use_persist_fn(function () {
31982
- if (context.timer && context.delayChange) {
31981
+ if (context.delayChange) context.delayChange();
31982
+ if (context.timer) {
31983
31983
  clearTimeout(context.timer);
31984
- context.delayChange();
31985
31984
  context.timer = null;
31986
31985
  context.delayChange = null;
31987
31986
  }
@@ -63982,7 +63981,7 @@ var upload_interface = __webpack_require__(8821);
63982
63981
 
63983
63982
 
63984
63983
  /* harmony default export */ var src_0 = ({
63985
- version: '3.3.7-beta.7'
63984
+ version: '3.3.7-fix.1'
63986
63985
  });
63987
63986
  }();
63988
63987
  /******/ return __webpack_exports__;