ToggleButtonsSingle child Button's value overridden by its Tooltip
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 202
- Avg merge
- 4h 36m
- Merged PRs (30d)
- 3
Description
Expected Behavior
Value set by ToggleButtonsSingle (or passed to the on_value parameter) should always take the value of child Buttons.
Current Behavior
when ToggleButtonsSingle has a child Button with a Tooltip, ToggleButtonsSingle sets the value of that Tooltip's label instead of the Button value.
Steps to Reproduce the Problem
see this pycafe code.
Specifications
- Solara Version: 1.47.0
- Platform: Ubuntu amd64
- Affected Python Versions: 3.12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the ToggleButtonsSingle component and inspect how values from child Buttons and Tooltip labels are resolved. Reproduce the behavior with the linked PyCafe example, then verify that a child Button's value remains selected when it has a Tooltip and that the on_value path behaves the same way.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100