Skip to content

Stop Collapsible from showing its default title before the given one - #123

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

trissim merged 1 commit into
mainfrom
fix/collapsible-parent-title-publication-20261008

Conversation

@trissim

@trissim trissim commented Oct 8, 2026 •

Copy link
Copy Markdown

A Collapsible built the title child with the supplied title, but reactive initialization then reset it to the default Toggle before restoring the supplied one. In _collapsible.py the title reactive now has init=False and always_update=True, so only the supplied title is published and changes to styling on the same text are not skipped. The title is also typed to accept styled content rather than only strings. Tests are added to test_collapsible.py.

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

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 a903192 into main Oct 8, 2026
0 of 22 checks passed
@trissim trissim changed the title Publish actual Collapsible titles without transient defaults Stop Collapsible from showing its default title before the given one Oct 11, 2026
@trissim
trissim deleted the fix/collapsible-parent-title-publication-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