Skip to content

Commit

Permalink
5.2.4.1 - fixed #15266
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jun 27, 2024
1 parent 1c4edce commit 4679c14
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Craft CMS 5

## 5.2.4.1 - 2024-06-27

- Fixed a JavaScript error. ([#15266](https://github.com/craftcms/cms/issues/15266))

## 5.2.4 - 2024-06-27

- Improved the styling of inactive users’ status indicators. ([#15195](https://github.com/craftcms/cms/issues/15195))
Expand Down
2 changes: 1 addition & 1 deletion src/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
return [
'id' => 'CraftCMS',
'name' => 'Craft CMS',
'version' => '5.2.4',
'version' => '5.2.4.1',
'schemaVersion' => '5.0.0.21',
'minVersionRequired' => '4.5.0',
'basePath' => dirname(__DIR__), // Defines the @app alias
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/web/assets/cp/src/js/CP.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,11 @@ Craft.CP = Garnish.Base.extend(
updateFixedHeader: function () {
// Checking if the sidebar toggle is visible
// https://stackoverflow.com/a/21696585
if (this.isMobile || this.$sidebarToggle[0].offsetParent !== null) {
if (
this.isMobile ||
(this.$sidebarToggle?.length &&
this.$sidebarToggle[0].offsetParent !== null)
) {
return;
}

Expand Down

0 comments on commit 4679c14

Please sign in to comment.