mnbayan / AutocompleteTextfieldSwift

Simple and straightforward sublass of UITextfield to manage string suggestions
MIT License
290 stars 66 forks source link

onSelect never gets called #19

Closed lydemann closed 8 years ago

lydemann commented 8 years ago

With default configurations onSelect never gets called when selecting a dropdown element.

lydemann commented 8 years ago

The issue was solved by removing

public override func resignFirstResponder() -> Bool { self.autoCompleteTableView?.hidden = true

    return super.resignFirstResponder()

}

alex-swiftify commented 8 years ago

I confirm the problem. lydemeister: I think we should remove resignFirstResponder override, otherwise didSelectRowAtIndexPath doesn't get called.