shineout 3.7.7-beta.2 → 3.7.7-beta.3

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.2'
525
+ version: '3.7.7-beta.3'
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.2');
12237
+ /* harmony default export */ var version = ('3.7.7-beta.3');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -35963,7 +35963,10 @@ var useInput = function useInput(params) {
35963
35963
  (_otherHandlers$onFocu = otherHandlers.onFocus) === null || _otherHandlers$onFocu === void 0 || _otherHandlers$onFocu.call(otherHandlers, event);
35964
35964
  setFocused(true);
35965
35965
  if (autoSelect) {
35966
- event.target.select();
35966
+ // why requestAnimationFrame: 当在文字身体上hover后立即点击,select()与浏览器的光标定位逻辑产生竞争,有可能导致只选中的部分文本,所以需要延迟一下
35967
+ requestAnimationFrame(function () {
35968
+ event.target.select();
35969
+ });
35967
35970
  }
35968
35971
  };
35969
35972
  };
@@ -71772,7 +71775,7 @@ var upload_interface = __webpack_require__(8821);
71772
71775
 
71773
71776
 
71774
71777
  /* harmony default export */ var src_0 = ({
71775
- version: '3.7.7-beta.2'
71778
+ version: '3.7.7-beta.3'
71776
71779
  });
71777
71780
  }();
71778
71781
  /******/ return __webpack_exports__;