mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-07 01:18:02 +00:00
Check for sendsActionOnEndEditing
This commit is contained in:
1 parent
7c01f14bfe
commit
2cf9fdf0d0
1 file changed
+1
-1
@@ -3395,7 +3395,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
|
||||
If the dataview resigning triggers the action (as CPTextField does), we come right
|
||||
back here and start an infinite loop. So we have to check this flag first.
|
||||
*/
|
||||
if ([sender isKindOfClass:[CPTextField class]] && _editingCellIndex === nil)
|
||||
if ([sender respondsToSelector:@selector(sendsActionOnEndEditing)] && [sender sendsActionOnEndEditing] && _editingCellIndex === nil)
|
||||
return;
|
||||
|
||||
_editingCellIndex = nil;
|
||||
|
||||
Reference in new issue
Block a user