Commit cd7dd01
Defer 'active' token on new tab panes to ldh:ActivateTab
Newly-appended tab-body elements were defaulting to class="tab-pane active",
which briefly left two panes carrying the 'active' token (the new one and
the currently-active local one) between append and ldh:ActivateTab. Code
running in that window — notably ldh:LeftSidebar, which reads ldt:base()
and sd:endpoint() off the active pane — would see ambiguous state and
crash. Pass class="tab-pane" explicitly so only ldh:ActivateTab promotes a
pane to active.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 72804d7 commit cd7dd01
1 file changed
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| 562 | + | |
562 | 563 | | |
563 | 564 | | |
| 565 | + | |
564 | 566 | | |
565 | 567 | | |
566 | 568 | | |
| |||
718 | 720 | | |
719 | 721 | | |
720 | 722 | | |
| 723 | + | |
721 | 724 | | |
722 | 725 | | |
723 | 726 | | |
| |||
0 commit comments