mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-29 18:02:03 +00:00
Fixed CPComboBox not resigning before first list popup
This commit is contained in:
1 parent
6f7cbe21ef
commit
c3c4a09c8c
1 file changed
+1
-1
+1
-1
@@ -762,7 +762,7 @@ var CPComboBoxTextSubview = @"text",
|
||||
If the list or popup button is clicked, we lose focus. The list will refuse first responder,
|
||||
and we refuse to resign. But we still have to manually restore the focus to the input element.
|
||||
*/
|
||||
var shouldResign = !buttonCausedResign && [_listDelegate controllingViewShouldResign];
|
||||
var shouldResign = !buttonCausedResign && (!_listDelegate || [_listDelegate controllingViewShouldResign]);
|
||||
|
||||
if (!shouldResign)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user