mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 11:13:50 +00:00
don't reverse set binding if textfield is showing a bindings placeholder
This commit is contained in:
1 parent
e59f20668b
commit
d8c0d2da8e
1 file changed
+9
@@ -714,6 +714,15 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
|
||||
[[CPNotificationCenter defaultCenter] postNotification:note];
|
||||
}
|
||||
|
||||
- (void)sendAction:(SEL)anAction to:(id)anObject
|
||||
{
|
||||
// Don't reverse set our empty value
|
||||
if (!_currentValueIsPlaceholder)
|
||||
[self _reverseSetBinding];
|
||||
|
||||
[CPApp sendAction:anAction to:anObject from:self];
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the string the text field.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user