mirror of
https://github.com/dzeiocom/FormManager.git
synced 2025-06-07 16:49:56 +00:00
Update DateInput
This commit is contained in:
parent
78e572faf3
commit
a61c8c4fe2
@ -4,15 +4,16 @@ import DefaultInput from './DefaultInput'
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @class FMDateInput
|
* @class FMDateInput
|
||||||
* @extends {FMInput}
|
* @extends {DefaultInput}
|
||||||
*/
|
*/
|
||||||
export default class DateInput extends DefaultInput {
|
export default class DateInput extends DefaultInput {
|
||||||
|
|
||||||
public setValue(value: any) {
|
public setValue(value: any) {
|
||||||
// handle GO null value
|
// handle GO null value
|
||||||
const format = this.formatValue(value)
|
const format = this.formatValue(value)
|
||||||
if (format) {
|
if (typeof format === "object") {
|
||||||
this.element.valueAsDate = format
|
this.element.valueAsDate = format
|
||||||
|
return
|
||||||
}
|
}
|
||||||
this.element.value = ""
|
this.element.value = ""
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user