Skip to content

Fix unwanted auto focus of expand panel UI#1722

Merged
demiankatz merged 4 commits into
UniversalViewer:devfrom
LlGC-jop:fix-1720
Apr 2, 2026
Merged

Fix unwanted auto focus of expand panel UI#1722
demiankatz merged 4 commits into
UniversalViewer:devfrom
LlGC-jop:fix-1720

Conversation

@LlGC-jop

@LlGC-jop LlGC-jop commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Fixes #1720

I realised that the else condition was firing incorrectly so I've moved the autoToggled check to be a guard and this fixes the issue on my test page.

Now when a panel is auto opened it won't cause a focus to its expand/collapse ui.

Let me know if you need some test html to verify it working.

@vercel

vercel Bot commented Apr 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
universalviewer Ready Ready Preview, Comment Apr 1, 2026 2:08pm

Request Review

@vercel

vercel Bot commented Apr 1, 2026

Copy link
Copy Markdown

@github-actions[bot] is attempting to deploy a commit to the Universal Viewer Team on Vercel.

A member of the Team first needs to authorize it.

@demiankatz demiankatz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like a straightforward fix. Thanks, @LlGC-jop!

@demiankatz demiankatz merged commit 9c34b41 into UniversalViewer:dev Apr 2, 2026
4 of 5 checks passed
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.

Auto focus of expand panel UI causes page jump

2 participants