diff --git a/haxe/ui/validators/Validator.hx b/haxe/ui/validators/Validator.hx index c6c06ca82..8da1c65ba 100644 --- a/haxe/ui/validators/Validator.hx +++ b/haxe/ui/validators/Validator.hx @@ -34,6 +34,12 @@ class Validator implements IValidator { valid = validateString(null); case TObject: valid = validateString(component.text); + case TClass(Date): + var stringValue:String = null; + if (component.value != null) { + stringValue = Std.string(component.value); + } + valid = validateString(stringValue); case _: trace("unsupported", Type.typeof(component.value), component.id, component.className, component.value); } @@ -87,4 +93,4 @@ class Validator implements IValidator { invalidMessage = value; } } -} \ No newline at end of file +}