mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 13:55:51 +03:00
[GH-ISSUE #1061] Cannot tell when dropdown has focus or not #768
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#768
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 @polothy on GitHub (Dec 13, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/1061
Reproduction
Old behavior
Observe that when the focus is on the dropdown, it is white in color.
New behavior
Observe that when the focus is on the dropdown, the color does not change, it's blue.
Commit that changed behavior
github.com/rivo/tview@a64fc48d76(I think)If I revert this while on the
masterbranch, and rundemos/form, then the old behavior is restored.Workaround
I haven't been able to figure out a workaround or way to restore the old behavior. If the new behavior is here to stay, I would appreciate a tip on how to get the color to change on focus in my own program.
As always, thank you very much for your time and wonderful project.
@justmeandopensource commented on GitHub (Feb 12, 2025):
@rivo
I am facing exact same issue after updating to the latest master branch. Prior to this I was in commit dated 26th Aug 2023 and this behaviour wasn't there. Looking forward to any resolution on this please.
And thanks for all your effort in maintaining this repo.
@rivo commented on GitHub (Feb 16, 2025):
Related to #1029, I think. I will look into this.
@rivo commented on GitHub (Mar 25, 2025):
The latest commit is a rewrite of the
DropDowncomponent. Mainly, it now uses anInputFieldto process text input (including copy/pasting and the control keys that come with it). It also fixes various other issues, including the one described in this issue.