Skip to content

Set the first Collapsible title once and keep label span changes - #122

Merged
trissim merged 1 commit into
mainfrom
fix/collapsible-title-initial-content-20261008
Oct 8, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/collapsible-title-initial-content-20261008

Conversation

@trissim

@trissim trissim commented Oct 8, 2026 •

Copy link
Copy Markdown

CollapsibleTitle ran its default reactive watchers before it had its label and collapsed state, so the title was drawn with intermediate values. In _collapsible.py the constructor now sets both through set_reactive and then updates the label once. The label reactive is also marked always_update, so a new label with the same text but different styling still reaches the widget. Tests are added to test_collapsible.py.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 13:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim
trissim merged commit d1843d8 into main Oct 8, 2026
0 of 22 checks passed
@trissim trissim changed the title Initialize collapsible titles once and preserve styled labels Set the first Collapsible title once and keep label span changes Oct 11, 2026
@trissim
trissim deleted the fix/collapsible-title-initial-content-20261008 branch October 11, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants