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

TimePicker 时间范围选择,为空时无法选择打开弹窗时的当前值 #1530

Closed
chownchen opened this issue Jan 20, 2021 · 0 comments · Fixed by #1569
Closed

TimePicker 时间范围选择,为空时无法选择打开弹窗时的当前值 #1530

chownchen opened this issue Jan 20, 2021 · 0 comments · Fixed by #1569
Labels
bug Something isn't working comp:timepicker

Comments

@chownchen
Copy link
Collaborator

Bug 描述
TimePicker 时间范围选择,为空时无法选择打开弹窗时的当前值

参考
重现步骤:

  1. 使用 TimePiker 组件,范围选择器
  2. 点击 组件,选择时间
  3. 选择弹出的对话框中的当前时间,无法选择
  4. 只能切换为其他时间后再选择回来

预期行为
清晰简洁的描述应当产生的效果。

截屏
如果方便的话可以提供一个截屏描述你的问题。
image

可重现环境:

  • 系统: [比如 macOS]
  • 浏览器: chrome
  • HIUI 的版本:3.3.1-rc

附加内容

// 代码
import React from 'react'
import TimePicker from '@hi-ui/hiui/es/date-picker/TimePicker'

class Demo extends React.Component {
  render() {
    return (
      <TimePicker
        defaultValue={{start: '', end: ''}}
        type="timerange"
        onChange={(date, dateString) => console.log(date, dateString)}
      />
    )
  }
}
@chownchen chownchen added the bug Something isn't working label Jan 20, 2021
@GleanCoder1116 GleanCoder1116 linked a pull request Feb 2, 2021 that will close this issue
@GleanCoder1116 GleanCoder1116 mentioned this issue Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comp:timepicker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants