Skip to content

Thet/fixes for 9.12.0 alpha.3 - #1315

Merged
thet merged 4 commits into
masterfrom
thet/fixes-for-9.12.0-alpha.3
Nov 30, 2026
Merged

thet merged 4 commits into
masterfrom
thet/fixes-for-9.12.0-alpha.3

Conversation

@thet

@thet thet commented Nov 30, 2026

Copy link
Copy Markdown
Member

No description provided.

thet added 4 commits November 30, 2026 18:19
…rn is destroyed.

The overlay lives outside of the pattern element and is independent of
it. Closing it on destroy broke galleries in pat-tooltip: a gallery item
with the close-panel class opens the overlay and closes the tooltip. An
ajax tooltip destroys the patterns in its content on hide, which closed
the just opened overlay immediately.

The overlay is closed by the user as before and cleans up after itself.

This fixes a regression from 9.12.0-alpha.3.

Assisted-by: Claude Opus 5.5
…late.

For images with unknown sizes, the gallery loads the image to get its
size and then updates the gallery. If the gallery was closed before the
image finished loading, the update ran on the destroyed PhotoSwipe
instance and threw a TypeError.

The size update is now skipped once the gallery is closing or destroyed.

Assisted-by: Claude Opus 5.5
pat-autofocus focuses the element 100ms after it was scheduled. If the
user - or a test runner - focused another input or entered a value in
the meantime, the focus was moved back to the autofocus element and the
following keystrokes went into the wrong input.

The scheduled focus is now skipped if the focused element changed since
scheduling or the autofocus element is not empty anymore.

The changed page load timing of the lazily loaded patterns in
9.12.0-alpha.3 made this happen in Ploneintranet's robot tests.

Assisted-by: Claude Opus 5.5
@thet
thet merged commit b5ebf28 into master Nov 30, 2026
1 check passed
@thet
thet deleted the thet/fixes-for-9.12.0-alpha.3 branch November 30, 2026 17:43
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