mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-01 21:07:36 +00:00
fix problem in CPTokenField with wrong theme state if containing tokens
This commit is contained in:
1 parent
b05d0dd1ec
commit
4d597069cf
1 file changed
+9
@@ -310,6 +310,15 @@ var CPThemeStateAutoCompleting = @"CPThemeStateAutoCompleting",
|
||||
[self _controlTextDidChange];
|
||||
}
|
||||
|
||||
- (void)_updatePlaceholderState
|
||||
{
|
||||
var objectValue = [self objectValue];
|
||||
if ((!objectValue || [objectValue count] === 0) && ![self hasThemeState:CPThemeStateEditing])
|
||||
[self setThemeState:CPTextFieldStatePlaceholder];
|
||||
else
|
||||
[self unsetThemeState:CPTextFieldStatePlaceholder];
|
||||
}
|
||||
|
||||
// =============
|
||||
// = RESPONDER =
|
||||
// =============
|
||||
|
||||
Reference in new issue
Block a user