shineout 3.7.6-beta.4 → 3.7.6-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.7.6-beta.4'
525
+ version: '3.7.6-fix.1'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.7.6-beta.4');
12237
+ /* harmony default export */ var version = ('3.7.6-fix.1');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -35793,19 +35793,18 @@ function useInputAble(props) {
35793
35793
  var render = useRender(syncValue);
35794
35794
  var shouldUseState = delay || !control;
35795
35795
  var value = shouldUseState ? stateValue : valuePo;
35796
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
35797
- if (context.timer) {
35798
- clearTimeout(context.timer);
35799
- context.timer = null;
35800
- }
35796
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
35801
35797
  if (delay && control && props.value !== stateValue) {
35802
35798
  changeStateValue(props.value);
35799
+ } else if (context.timer) {
35800
+ clearTimeout(context.timer);
35801
+ context.timer = null;
35803
35802
  }
35804
35803
  }, [props.value, delay, control]);
35805
35804
  var forceDelayChange = use_persist_fn(function () {
35806
- if (context.timer && context.delayChange) {
35805
+ if (context.delayChange) context.delayChange();
35806
+ if (context.timer) {
35807
35807
  clearTimeout(context.timer);
35808
- context.delayChange();
35809
35808
  context.timer = null;
35810
35809
  context.delayChange = null;
35811
35810
  }
@@ -71769,7 +71768,7 @@ var upload_interface = __webpack_require__(8821);
71769
71768
 
71770
71769
 
71771
71770
  /* harmony default export */ var src_0 = ({
71772
- version: '3.7.6-beta.4'
71771
+ version: '3.7.6-fix.1'
71773
71772
  });
71774
71773
  }();
71775
71774
  /******/ return __webpack_exports__;