|
2 | 2 |
|
3 | 3 | See the [history](./docs/history/index.md) for older changelog entries. |
4 | 4 |
|
| 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 | + |
5 | 49 | ## [9.12.0-alpha.3](https://github.com/Patternslib/Patterns/compare/9.12.0-alpha.2...9.12.0-alpha.3) (2026-11-30) |
6 | 50 |
|
7 | 51 | ### Features |
|
0 commit comments