mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
rollback time format problem, ref #953
This commit is contained in:
parent
5c22e32db8
commit
72d077be1f
@ -14,10 +14,6 @@ export default {
|
||||
getFormatter() {
|
||||
const formats = this.formats = this.formats || {};
|
||||
let format = this.props.format;
|
||||
// Remove time format text when has time-picker in calendar
|
||||
if (this.props.showTime) {
|
||||
format = format.replace('HH:mm:ss', '');
|
||||
}
|
||||
if (formats[format]) {
|
||||
return formats[format];
|
||||
}
|
||||
@ -41,6 +37,7 @@ export default {
|
||||
// remove input readonly warning
|
||||
handleInputChange() {
|
||||
},
|
||||
|
||||
toggleOpen(e) {
|
||||
this.setState({
|
||||
open: e.open
|
||||
|
Loading…
Reference in New Issue
Block a user