Commit f726423
Defer tab activation until rdf-document-response populates the cache
Tab click handler and close-tab fallback eagerly called ldh:ActivateTab,
making the pane mouse-targetable before ldh:DocumentNavigate had finished
fetching the document and populating LinkedDataHub.contents[$uri]. On a
page loaded with ?uri=<external>, the local URI is never in the cache
until the user switches back, so any mousemove on a block then hit the
nested ixsl:get() in block.xsl and threw an uncaught XError, which also
killed the body-level handler that slides in the left sidebar.
ldh:RenderTab already runs ldh:ActivateTab at the end of
ldh:rdf-document-response, so the eager calls were just trading
correctness for an instant visual swap. Removing them aligns tab clicks
with how direct navigation works: cursor: progress during the fetch,
then tab-bar highlight and pane swap together once the cache is filled.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ea50086 commit f726423
1 file changed
Lines changed: 1 addition & 5 deletions
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | | - | |
1019 | | - | |
1020 | 1018 | | |
1021 | 1019 | | |
1022 | 1020 | | |
| |||
1040 | 1038 | | |
1041 | 1039 | | |
1042 | 1040 | | |
1043 | | - | |
| 1041 | + | |
1044 | 1042 | | |
1045 | | - | |
1046 | | - | |
1047 | 1043 | | |
1048 | 1044 | | |
1049 | 1045 | | |
| |||
0 commit comments