Fixed: disappearing token delete button.

The token delete button becomes visible on mouse over of the token in the standard theme. It could be made to disappear even that the mouse was still over the token by mousing over the button itself and then out.

This fix delegates all hover management to the token alone.
This commit is contained in:
Alexander Ljungberg committed 2013-02-03 18:40:06 +00:00
1 parent 18d77ca9f7
commit 49c52a00be
1 file changed
+10
+10
View File
@@ -1440,6 +1440,16 @@ var CPScrollDestinationNone = 0,
return "tokenfield-token-close-button";
}
- (void)mouseEntered:(CPEvent)anEvent
{
// Don't toggle hover state from within the button - we use the hover state of the token field as a whole.
}
- (void)mouseExited:(CPEvent)anEvent
{
// Don't toggle hover state from within the button - we use the hover state of the token field as a whole.
}
@end