-
Notifications
You must be signed in to change notification settings - Fork 740
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
Filter search not working in list-simple example #155
Comments
|
Hi! So the list example was actually intended to have filtering disabled, but it looks like we accidentally left some of the filtering hooks in. We’ll remove it to keep the simple example simple. That said, here is the simple list example with filtering enabled and here is the diff with the necessary changes. Basically, you just need to make sure the enter doesn't select an item while filtering and then you just need to make sure all messages pass through list’s On that note (and to your point, @jon4hz) Edit: whoops, I totally missed your PR there, @jon4hz. That’s also a great example of how to do it. |
Hey there! thanks for clarifying. So I was trying to update the list contents in |
@meowgorithm if you want filtered disabled in the simple-list example I'll close my PR. Exposing |
Can't reproduce this anymore, the filter tooltip isn't showing up in |
* feat: allow to set the height of the item The user might want to show more than 2 lines, and, right now, if they try to do so, things break. Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * fix: short-circuit if width <= 0 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * fix: height check Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
After running the example list-simple/main.go I noticed that the search function is not getting triggered.
I see the FilterValue() is also defined just like in other list examples.
Not sure if this is the default behavior or some issue.
Edit
l.SetFilteringEnabled(true)
setting this to true enables the search but now the issue is it shows nothing in the search like so:The text was updated successfully, but these errors were encountered: