shineout 3.7.7-beta.9 → 3.7.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
@@ -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.7-beta.9'
525
+ version: '3.7.7-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.7-beta.9');
12237
+ /* harmony default export */ var version = ('3.7.7-fix.1');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -35813,19 +35813,18 @@ function useInputAble(props) {
35813
35813
  var render = useRender(syncValue);
35814
35814
  var shouldUseState = delay || !control;
35815
35815
  var value = shouldUseState ? stateValue : valuePo;
35816
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
35817
- if (context.timer) {
35818
- clearTimeout(context.timer);
35819
- context.timer = null;
35820
- }
35816
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
35821
35817
  if (delay && control && props.value !== stateValue) {
35822
35818
  changeStateValue(props.value);
35819
+ } else if (context.timer) {
35820
+ clearTimeout(context.timer);
35821
+ context.timer = null;
35823
35822
  }
35824
35823
  }, [props.value, delay, control]);
35825
35824
  var forceDelayChange = use_persist_fn(function () {
35826
- if (context.timer && context.delayChange) {
35825
+ if (context.delayChange) context.delayChange();
35826
+ if (context.timer) {
35827
35827
  clearTimeout(context.timer);
35828
- context.delayChange();
35829
35828
  context.timer = null;
35830
35829
  context.delayChange = null;
35831
35830
  }
@@ -71838,7 +71837,7 @@ var upload_interface = __webpack_require__(8821);
71838
71837
 
71839
71838
 
71840
71839
  /* harmony default export */ var src_0 = ({
71841
- version: '3.7.7-beta.9'
71840
+ version: '3.7.7-fix.1'
71842
71841
  });
71843
71842
  }();
71844
71843
  /******/ return __webpack_exports__;