mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[GH-ISSUE #229] Allow for <select> to have no currently selected option, or allow to hide that the option is selected when the <select> is not focused #56
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#56
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 @pizzaisdavid on GitHub (Oct 23, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/229
I have four
<select>elements side-by-side:In the screenshot, the second
<select>is focused.I would like the possibility to have no selected option when an select isn't focused.
Meaning: no triangle, no yellow text, no blue background.
An alternative could be that the selected option looks different when the
<select>is not focused compared to when it is focused.Below is my sample code. You can change the focused
<select>using the left and right arrow keys.@pizzaisdavid commented on GitHub (Oct 23, 2025):
I am trying to make a kanban board I only want one
optionthat looks currently selected (at most) because is where the "cursor" is located. I hope that makes some sense.@kommander commented on GitHub (Oct 23, 2025):
Yeah that makes sense.
@pizzaisdavid commented on GitHub (Oct 23, 2025):
A bit more research:
The behavior that Textual does by default: when a
<select>has a selected option, and the<select>becomes unfocused, the color of the selected option changes.Demo:
@msmps commented on GitHub (Oct 30, 2025):
@pizzaisdavid this can also be solved as a consumer by setting the
selectedTextColor,selectedBackgroundColorandselectedDescriptionColorproperties.Example 👇
@aprogramq commented on GitHub (Nov 4, 2025):
Can I take it?
@aprogramq commented on GitHub (Nov 4, 2025):
@jettptacek commented on GitHub (Jan 24, 2026):
Can we close this issue since https://github.com/anomalyco/opentui/pull/269 has been merged?