Skip to content

Commit 78cc2ef

Browse files
committed
Merge branch '1.0.3'
2 parents f157d19 + cb8f3e9 commit 78cc2ef

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
# 1.0.3 - 2022-01-22
5+
- Fix: `PopupManager` will no longer destroy popups after hiding if they do not belong to its root (when the destroy parameter is set to false)
6+
47
# 1.0.2 - 2022-01-14
58
- Feature: Added possibility to name update request and cancel it
69
- Feature: Added possibility to cancel all pending update requests

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pixi-yoo-ai",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Yoo Ai. Extensive UI library for PixiJS v6",
55
"author": "Ilya Malanin",
66
"license": "MIT",

src/yooai/popup/PopupManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export class PopupManager {
117117
.play();
118118
} else {
119119
gsap.killTweensOf(popup);
120-
popup.destroy();
120+
if (destroy) {
121+
popup.destroy();
122+
}
121123
onComplete?.();
122124
}
123125
this._popups.delete(popup);

0 commit comments

Comments
 (0)