Skip to content

4.4.0 rc3 bug fix#1769

Merged
jamesmisson merged 3 commits into
UniversalViewer:release-4.4.0from
jamesmisson:4.4.0-rc3-bug-fix
May 27, 2026
Merged

4.4.0 rc3 bug fix#1769
jamesmisson merged 3 commits into
UniversalViewer:release-4.4.0from
jamesmisson:4.4.0-rc3-bug-fix

Conversation

@jamesmisson
Copy link
Copy Markdown
Contributor

release-4.4.0-rc2 had a bug where the rendering of the choice button was out of sync with the loading of the manifest. In certain conditions, the manifest hadn't loaded before the UI was created, so it wasn't aware of the choice.

This cleans up some of the redundant condition checks that were causing this - one on the extension, and the other in createChoiceSwitch in the OpenseaDragonCenterPanel. Now, the only time that the presence of choice is checked, is in openPagesHandler, after the page has loaded, which makes the button visible or invisible. This is more in line with how other UI elements are rendered anyway.

(re-opened from jamesmisson#3 which was targeted to the wrong branch. The edit in line 778 is just to enable a new PR)

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

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

Project Deployment Actions Updated (UTC)
universalviewer Ready Ready Preview, Comment May 27, 2026 12:53pm

Request Review

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

@jamesmisson is attempting to deploy a commit to the Universal Viewer Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Contributor

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @jamesmisson!

@jamesmisson jamesmisson merged commit 038b425 into UniversalViewer:release-4.4.0 May 27, 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.

2 participants