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

Allows access to search_string in searchable table views #813

Merged
merged 2 commits into from
Oct 24, 2018

Conversation

markrickert
Copy link
Contributor

Fixes #811

Copy link
Collaborator

@andrewhavens andrewhavens left a comment

Choose a reason for hiding this comment

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

Assuming this works as expected, I'd give this a 👍

lib/ProMotion/table/data/table_data.rb Outdated Show resolved Hide resolved
def search(search_string)
@filtered = true
@search_string = search_string
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this still provide the correct value? For some reason I thought this gets overwritten (or is not up-to-date) somewhere later on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This sets the instance var every time someone types a new character and that function is run. You're right that it gets manipulated later on, but since we can't access that anymore (not sure what happened to that capability) i just reimplemented it like the filtered? method.

Copy link
Collaborator

Choose a reason for hiding this comment

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

There were some significant changes that had to happen in order to support searching on iOS 8+ so either some of that functionality got lost on accident or couldn't be supported.

@andrewhavens andrewhavens merged commit fad2d7e into master Oct 24, 2018
@andrewhavens andrewhavens deleted the bugfix/issue-811 branch October 24, 2018 20:35
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.

2 participants