shineout 2.0.5-beta.1 → 2.0.5-beta.2

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.
@@ -349,8 +349,8 @@ function (_PureComponent) {
349
349
  }
350
350
 
351
351
  if (focus === true) {
352
- this.firstRender = true; // this.props.onFocus()
353
-
352
+ // this.firstRender = true
353
+ // this.props.onFocus()
354
354
  this.bindClickAway();
355
355
  } else {
356
356
  this.props.onValueBlur();
@@ -598,7 +598,8 @@ function (_PureComponent) {
598
598
  _proto.renderPicker = function renderPicker() {
599
599
  var _this9 = this;
600
600
 
601
- if (!this.firstRender) return undefined;
601
+ if (!this.firstRender && !this.focus) return undefined;
602
+ this.firstRender = true;
602
603
  var _this$props8 = this.props,
603
604
  range = _this$props8.range,
604
605
  type = _this$props8.type,
package/es/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import * as utils from './utils';
3
3
  export default {
4
4
  utils: utils,
5
- version: '2.0.5-beta.1'
5
+ version: '2.0.5-beta.2'
6
6
  };
7
7
  export { utils };
8
8
  export { setLocale } from './locale';
@@ -372,8 +372,8 @@ function (_PureComponent) {
372
372
  }
373
373
 
374
374
  if (focus === true) {
375
- this.firstRender = true; // this.props.onFocus()
376
-
375
+ // this.firstRender = true
376
+ // this.props.onFocus()
377
377
  this.bindClickAway();
378
378
  } else {
379
379
  this.props.onValueBlur();
@@ -621,7 +621,8 @@ function (_PureComponent) {
621
621
  _proto.renderPicker = function renderPicker() {
622
622
  var _this9 = this;
623
623
 
624
- if (!this.firstRender) return undefined;
624
+ if (!this.firstRender && !this.focus) return undefined;
625
+ this.firstRender = true;
625
626
  var _this$props8 = this.props,
626
627
  range = _this$props8.range,
627
628
  type = _this$props8.type,
package/lib/index.js CHANGED
@@ -220,6 +220,6 @@ exports.Upload = _Upload.default;
220
220
  // Created by scripts/src-index.js.
221
221
  var _default = {
222
222
  utils: utils,
223
- version: '2.0.5-beta.1'
223
+ version: '2.0.5-beta.2'
224
224
  };
225
225
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shineout",
3
- "version": "2.0.5-beta.1",
3
+ "version": "2.0.5-beta.2",
4
4
  "description": "Shein 前端组件库",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",