controlDidFailToFormatString should send a string not an HTML element

This commit is contained in:
Blair Duncan committed 2012-05-15 16:07:56 -04:00
1 parent 6010288124
commit 5f7d1e8dc3
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -652,7 +652,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
var acceptInvalidValue = NO;
if ([_delegate respondsToSelector:@selector(control:didFailToFormatString:errorDescription:)])
acceptInvalidValue = [_delegate control:self didFailToFormatString:[self _inputElement] errorDescription:error];
acceptInvalidValue = [_delegate control:self didFailToFormatString:aValue errorDescription:error];
if (acceptInvalidValue === NO)
return NO;