Fix the issue where CPSecureTextField would sometimes cause all other text fields to go crazy afterwards.

This commit is contained in:
Ross Boucher committed 2010-06-23 19:58:43 -07:00
1 parent 7e25166ce1
commit 7c5a07f709
1 file changed
+1 -4
+1 -4
View File
@@ -807,11 +807,8 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
{
if ([[self window] firstResponder] === self)
window.setTimeout(function() { element.select(); }, 0);
else
{
[[self window] makeFirstResponder:self];
else if ([self window] !== nil && [[self window] makeFirstResponder:self])
window.setTimeout(function() {[self selectText:sender];}, 0);
}
}
#endif
}