Skip to content

Commit

Permalink
Fix in CPString setPlaceholderString
Browse files Browse the repository at this point in the history
[cappuccino#238 state:resolved]
  • Loading branch information
Ross Boucher committed Mar 8, 2009
1 parent 25c7d98 commit 8803542
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AppKit/CPTextField.j
Expand Up @@ -708,6 +708,9 @@ var _CPTextFieldSquareBezelColor = nil,
*/
-(void)setPlaceholderString:(CPString)aStringValue
{
if(_placeholderString && [self stringValue] === _placeholderString)
_value = @"";

_placeholderString = aStringValue;

//if there is no set value, automatically display the placeholder
Expand Down

0 comments on commit 8803542

Please sign in to comment.