Skip to content

Fix first-tab hash navigation in nested panels - #535

Merged
PrzemyslawKlys merged 1 commit into
masterfrom
fix/first-tab-hash-navigation
Oct 30, 2026
Merged

PrzemyslawKlys merged 1 commit into
masterfrom
fix/first-tab-hash-navigation

Conversation

@PrzemyslawKlys

Copy link
Copy Markdown
Member

Hash changes to the first tab leave the current tab visible because SmartTab treats index zero as a missing index. Compare the lookup result explicitly with false in the hashchange handler and the initial selection fallback, preserving index zero and the existing back-button and enabled-tab checks.

The standalone generated-report browser regression covers Back/Forward, direct hash edits, an in-document link to the first tab of a nested panel, unknown hashes, and initial first-tab links with a configured second tab. It uses the existing PSParseHTML browser session and installed Edge in headless mode. Serve the supplied report directory on loopback before invoking Tests/Browser/Invoke-TabHashNavigationTest.ps1.

Validation: the original vendor handler fails the first-tab hash test, and the original initial-load fallback fails a fresh first-tab link over a configured second tab; the patched handler passes all nine cases in PowerShell 7 and Windows PowerShell 5.1. All 76 existing Pester tests pass in each host. Headless captures at 390, 1024 and 1440 under light and dark system preferences are posted for running-report review. The report keeps its existing palette under both preferences. No dependency, layout or package release change is included.

@PrzemyslawKlys
PrzemyslawKlys merged commit 0c790ee into master Oct 30, 2026
5 checks passed
@PrzemyslawKlys
PrzemyslawKlys deleted the fix/first-tab-hash-navigation branch October 30, 2026 19:41
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.

1 participant