Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picker 选择日期时, 'value'的默认值是当天引发的范围限定bug #8589

Closed
misszoessmile opened this issue Jan 27, 2021 · 0 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-1 Version - 1.x

Comments

@misszoessmile
Copy link

misszoessmile commented Jan 27, 2021

相关平台

H5

复现仓库

https://github.com/misszoessmile/taro-bug-demo
浏览器版本: Chrome87
使用框架: React

复现步骤

当开始日期未选择时, 选择结束日期为当天之前的日期

期望结果

当开始日期未选择时, 选择结束日期为当天之前的日期, 组件不报错

实际结果

当开始日期未选择时, 选择结束日期为当天之前的日期, 组件报错, 页面卡死
image

环境信息

👽 Taro v1.3.11


  Taro CLI 1.3.11 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 10.16.3 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.13.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.9.0 - ~\AppData\Local\Yarn\bin\npm.CMD

补充信息

选择了结束日期后, 开始日期的end值为结束日期的值, 而value值为空, 被组件设计为默认是当天时间, 则判断时value的时间大于end的时间

@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-1 Version - 1.x labels Jan 27, 2021
@misszoessmile misszoessmile changed the title picker 选择日期时,value的默认值为当天引发的范围限定bug picker 选择日期时, value的默认值为当天引发的范围限定bug Jan 27, 2021
@misszoessmile misszoessmile changed the title picker 选择日期时, value的默认值为当天引发的范围限定bug picker 选择日期时, 'value'的默认值是当天引发的范围限定bug Jan 27, 2021
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-1 Version - 1.x
Projects
Archived in project
Development

No branches or pull requests

2 participants