Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard is now automatically dismissed when an item is selected. #144

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Oliver-Binns
Copy link

@Oliver-Binns Oliver-Binns commented Oct 13, 2018

A simple, but effective, quality of life improvement for users.

@mrDeadLinez
Copy link

May be better to make it as param instead of auto dismiss with no option?

@Oliver-Binns
Copy link
Author

May be better to make it as param instead of auto dismiss with no option?

Sure, do you think it should be the default option or not?

@mrDeadLinez
Copy link

Why not? Let it hide by default. But if someone need to keep it - he can change behaviour.

@Oliver-Binns
Copy link
Author

@mrDeadLinez I have added a parameter to turn this behaviour off.

@@ -595,6 +598,9 @@ extension SearchTextField: UITableViewDelegate, UITableViewDataSource {
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if itemSelectionHandler == nil {
self.text = filteredResults[(indexPath as NSIndexPath).row].title
if autoDismiss{
Copy link

@hydrated hydrated Nov 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A space before opening brass would be nicer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants