Skip to content

Commit 25dd4c7

Browse files
committed
Release new version.
1 parent b5ebf28 commit 25dd4c7

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

‎CHANGES.md‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,50 @@
22

33
See the [history](./docs/history/index.md) for older changelog entries.
44

5+
## [9.12.0-alpha.4](https://github.com/Patternslib/Patterns/compare/9.12.0-alpha.3...9.12.0-alpha.4) (2026-11-30)
6+
7+
### Bug Fixes
8+
9+
- **pat-autofocus:** Do not steal the focus after it was moved. ([ba4d92a](https://github.com/Patternslib/Patterns/commit/ba4d92a6fa5a78c166709d350ef52d13f7768120))
10+
11+
pat-autofocus focuses the element 100ms after it was scheduled. If the
12+
user - or a test runner - focused another input or entered a value in
13+
the meantime, the focus was moved back to the autofocus element and the
14+
following keystrokes went into the wrong input.
15+
16+
The scheduled focus is now skipped if the focused element changed since
17+
scheduling or the autofocus element is not empty anymore.
18+
19+
The changed page load timing of the lazily loaded patterns in
20+
9.12.0-alpha.3 made this happen in Ploneintranet's robot tests.
21+
22+
Assisted-by: Claude Opus 5.5
23+
24+
- **pat-gallery:** Do not close an open gallery overlay when the pattern is destroyed. ([53d8ebf](https://github.com/Patternslib/Patterns/commit/53d8ebf51bde301c36cd22a7fd7a242bcf43befe))
25+
26+
The overlay lives outside of the pattern element and is independent of
27+
it. Closing it on destroy broke galleries in pat-tooltip: a gallery item
28+
with the close-panel class opens the overlay and closes the tooltip. An
29+
ajax tooltip destroys the patterns in its content on hide, which closed
30+
the just opened overlay immediately.
31+
32+
The overlay is closed by the user as before and cleans up after itself.
33+
34+
This fixes a regression from 9.12.0-alpha.3.
35+
36+
Assisted-by: Claude Opus 5.5
37+
38+
- **pat-gallery:** Do not update a closed gallery when an image loads late. ([1557533](https://github.com/Patternslib/Patterns/commit/1557533c4202d1febfcd872fdcf885ce83e3f7eb))
39+
40+
For images with unknown sizes, the gallery loads the image to get its
41+
size and then updates the gallery. If the gallery was closed before the
42+
image finished loading, the update ran on the destroyed PhotoSwipe
43+
instance and threw a TypeError.
44+
45+
The size update is now skipped once the gallery is closing or destroyed.
46+
47+
Assisted-by: Claude Opus 5.5
48+
549
## [9.12.0-alpha.3](https://github.com/Patternslib/Patterns/compare/9.12.0-alpha.2...9.12.0-alpha.3) (2026-11-30)
650

751
### Features

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patternslib/patternslib",
3-
"version": "9.12.0-alpha.3",
3+
"version": "9.12.0-alpha.4",
44
"title": "Markup patterns to drive behaviour.",
55
"description": "Patternslib is a JavaScript library that enables designers to build rich interactive prototypes without the need for writing any Javascript. All events are triggered by classes and other attributes in the HTML, without abusing the HTML as a programming language. Accessibility, SEO and well structured HTML are core values of Patterns.",
66
"license": "BSD-3-Clause",

0 commit comments

Comments
 (0)