Skip to content

Commit

Permalink
Fixed #14045
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 27, 2023
1 parent a48f008 commit a393484
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Fixed a bug where the `index-assets/cleanup` command accepted `--cache-remote-images`, `--create-missing-assets`, and `--delete-missing-assets` options, even though they didn’t do anything.
- Fixed a bug where automatically-created relations could be lost when a new site was added to an entry. ([#14065](https://github.com/craftcms/cms/issues/14065))
- Fixed a bug where `craft\web\Request::getIsPreview()` was returning `true` for requests with expired tokens. ([#14066](https://github.com/craftcms/cms/discussions/14066))
- Fixed a bug where asset conflict resolution modals were closing prematurely if there were multiple conflicts. ([#14045](https://github.com/craftcms/cms/issues/14045))

## 4.5.13 - 2023-12-15

Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/garnish/dist/garnish.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions src/web/assets/garnish/src/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default Base.extend(

if (this.$container) {
// Move it to the end of <body> so it gets the highest sub-z-index
this.$shade.appendTo(Garnish.$bod);
this.$container.appendTo(Garnish.$bod);
this.$shade.appendTo(Garnish.$bod).velocity('stop');
this.$container.appendTo(Garnish.$bod).velocity('stop');

this.$container.show();
this.updateSizeAndPosition();
Expand Down Expand Up @@ -190,8 +190,10 @@ export default Base.extend(
}

if (this.$container) {
this.$container.velocity('fadeOut', {duration: Garnish.FX_DURATION});
this.$shade.velocity('fadeOut', {
this.$container
.velocity('stop')
.velocity('fadeOut', {duration: Garnish.FX_DURATION});
this.$shade.velocity('stop').velocity('fadeOut', {
duration: Garnish.FX_DURATION,
complete: this.onFadeOut.bind(this),
});
Expand Down

0 comments on commit a393484

Please sign in to comment.