mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #1026] DropDown disappears when it's inside a form and we don't select anything #742
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#742
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 @manuecg on GitHub (Sep 18, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/1026
If we have a DropDown inside a form, which has the values form.SetFieldTextColor(tcell.ColorBlack) and form.SetFieldBackgroundColor(tcell.ColorWhite), when we click on it and exit without selecting an option, it takes the 'FieldTextColor' value and causes a hiding effect. I believe the effect can be better appreciated with the video.
https://github.com/user-attachments/assets/e3d3d7d3-5aae-449e-9e5e-22202f8c8ea7
`
`
@rivo Do you think this could be a possible bug? Or am I doing something wrong?
@rivo commented on GitHub (Sep 21, 2024):
The latest commit solves your issue. However, this
DropDownstuff is very old code and requires some refactoring. So things might still change slightly.@manuelacgu commented on GitHub (Sep 23, 2024):
Hi, Thank you very much, I have tested the new version and everything works fine.