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

[BUG] TimerPicker设置了clearable={true} 后还是无法清空 #15

Open
npljy opened this issue Jun 24, 2022 · 6 comments
Open

[BUG] TimerPicker设置了clearable={true} 后还是无法清空 #15

npljy opened this issue Jun 24, 2022 · 6 comments

Comments

@npljy
Copy link

npljy commented Jun 24, 2022

No description provided.

@loongcheung
Copy link

请问是哪个版本有此问题

@fkk0727
Copy link

fkk0727 commented Jun 28, 2022

"tea-component": "^2.7.3",

@fkk0727
Copy link

fkk0727 commented Jun 28, 2022

请问是哪个版本有此问题

效果:
image

代码:
<TimePicker.RangePicker clearable placeholder="请选择时长" format="mm:ss" onChange={(value: any) => setFormData({ ...formData, durationStart: value[0].format('mm:ss'), durationEnd: value[1].format('mm:ss'), }) } />

@loongcheung
Copy link

https://codesandbox.io/s/tea-component-demo-forked-gisfbe?file=/index.tsx
可以在这里提供下复现的Demo,目前自测是可以清除

@fkk0727
Copy link

fkk0727 commented Jul 1, 2022

https://codesandbox.io/s/tea-component-demo-forked-gisfbe?file=/index.tsx 可以在这里提供下复现的Demo,目前自测是可以清除

image

加上后面的属性

@loongcheung
Copy link

TimePicker.RangePicker还没有实现clearable,近期处理下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants