提交 2b6b294f 编写于 作者: A afc163

Merge pull request #562 from ant-design/update-timepicker

update timepicker component and fix a bug when clear input.
......@@ -53,7 +53,11 @@ const AntTimepicker = React.createClass({
},
handleChange(value) {
this.props.onChange(new Date(value.getTime()));
let args = null;
if (value) {
args = new Date(value.getTime());
}
this.props.onChange(args);
},
getLocale() {
......
.@{timepicker-prefix-cls}-panel {
.@{timepicker-prefix-cls}-panel-inner {
display: inline-block;
position: relative;
outline: none;
......
.@{timepicker-prefix-cls}-container {
.@{timepicker-prefix-cls}-panel {
z-index: 1070;
position: absolute;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册