mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 13:55:51 +03:00
[GH-ISSUE #930] Unable to update adjacent view for the first item in the list #679
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#679
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @peku-jamf on GitHub (Dec 21, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/930
Hello, can you please advice how can I update textView on the right side of the screen in case there is only one item in the list or there is no user interaction (no key pressed), thus no SetSelectedFunc() is triggered?
I assumed setting current item to the very first one would trigger callback, but it doesn't help.
Thanks
@peku-jamf commented on GitHub (Dec 21, 2023):
I have workarounded the problem by adding an artificial list item, pointing to it, then returning back to first item and removing artificial one. But there must be a better way..