Skip to content

Commit

Permalink
fix(present): ionic cancel transitions on initialization (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-rr committed Aug 14, 2023
1 parent 1f283a3 commit a944d32
Show file tree
Hide file tree
Showing 22 changed files with 51 additions and 23 deletions.
4 changes: 2 additions & 2 deletions dist/core/index.js

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion dist/cupertino-pane.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Released under the MIT License
*
* Released on: August 8, 2023
* Released on: August 14, 2023
*/

/******************************************************************************
Expand Down Expand Up @@ -1960,6 +1960,7 @@ class CupertinoPane {
// Ion-content element
if (this.device.ionic) {
this.ionContent = document.querySelector('ion-content');
this.ionApp = document.querySelector('ion-app');
}
// Events listeners
if (this.settings.events) {
Expand Down Expand Up @@ -2129,6 +2130,15 @@ class CupertinoPane {
Object.assign(this.paneEl.style, (_a = conf === null || conf === void 0 ? void 0 : conf.transition) === null || _a === void 0 ? void 0 : _a.from);
// Show elements
this.wrapperEl.style.display = 'block';
/**
* Ionic cancel transition if the app is not ready
* https://github.com/tech-systems/panes/issues/216
* Good to get rid of that.
*/
if (this.device.ionic) {
yield this.ionApp['componentOnReady']();
yield new Promise(resolve => requestAnimationFrame(resolve));
}
this.contentEl.style.display = 'block';
this.wrapperEl.classList.add('rendered');
this.rendered = true;
Expand Down
4 changes: 2 additions & 2 deletions dist/cupertino-pane.esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cupertino-pane.esm.min.js.map

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion dist/cupertino-pane.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cupertino-pane.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/cupertino-pane.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modules/backdrop.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/modules/fit-height.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/modules/follower.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/modules/horizontal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a944d32

Please sign in to comment.