widgetti / widgetti/solara

ToggleButtonsSingle child Button's value overridden by its Tooltip

Open
#1,069 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.