Fixed a bug where the CPTextField value was not updated properly when the update happened in the same 'runloop' iteration as becomeFirstResponder

This commit is contained in:
Klaas Pieter Annema committed 2010-02-03 10:11:32 +01:00
1 parent 8b32f561ec
commit c85e33c034
1 file changed
+3 -2
+3 -2
View File
@@ -691,9 +691,10 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
- (void)setObjectValue:(id)aValue
{
[super setObjectValue:aValue];
#if PLATFORM(DOM)
if (CPTextFieldInputOwner === self)
if (CPTextFieldInputOwner === self || [[self window] firstResponder] === self)
[self _inputElement].value = aValue;
#endif