Skip to content

time-picker bug when use backspace to clear input #1173

@zkwolf

Description

@zkwolf
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.16-latest

Environment

chrome 76

Reproduction link

https://vue.ant.design/components/time-picker-cn/#components-time-picker-demo-basic

Steps to reproduce

1.选择一个时间

2.backspace清空

3.输入数字

What is expected?

清空后输入数字直接显示

What is actually happening?

控制台报错 第一个输入数字无显示,再输入可以正常工作


1.报错是因为Header.jsx文件中尝试修改props showStr导致warning

2.将showStr相关去掉可以解决此bug,但是未知副作用

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions