Comments (4)
Hello @rbalet, thanks for making the repository public!
As a workaround you can update your usage to:
async openModal() {
const modal = await this._modalController.create({
component: Tab2Page,
cssClass: 'modal-alert-component',
});
modal.present();
const response = await modal.onWillDismiss();
console.log('response', response);
}
By awaiting modal.present()
you were blocking execution until the modal was fully presented. This means when dismissing the modal before the animation completes, the lifecycle event is emitted before the onWillDismiss
is registered.
I think this is an area we could explore resolving the present
promise early if the user dismisses the overlay during the animation to simplify the developer experience.
I'm going to capture this as a feature request 👍
from ionic-framework.
Hello @rbalet thanks for reporting this issue! Can you make your reproduction public?
from ionic-framework.
@sean-perkins done
Sorry I though I did '^^
from ionic-framework.
Makes a lot of sense, thx for the explanation
from ionic-framework.
Related Issues (20)
- bug: item borders effectively invisible in md dark mode HOT 4
- bug: bundle size increase with IonicModule and lazy loaded web components in v8.0.1 HOT 4
- bug: root remains `aria-hidden` after dismissing multiple overlays consecutively
- bug: pushing and popping views can unmount entering view when done quickly HOT 2
- [TRAINING] bug: ion-input retained in memory after removed from DOM
- CapacitorHttp FormData Not Supported on Android Device but it working fine on ionic serve(browser) HOT 1
- bug: Keyboard expansion unable to push bottom elements HOT 2
- bug: ion-header with collapse="fade" displays background and border temporally HOT 1
- bug: Unexpected ion-menu opening on another page HOT 1
- bug: tab sub-page navigation breaks occasionally with ionic-vue-router HOT 1
- bug: segment does not set active button when dynamically changing options in angular HOT 4
- @ionic/react-router not compatible with latest version of ERROR in ./node_modules/@ionic/react-router/dist/index.js 890:18-28 export 'withRouter' (imported as 'withRouter') was not found in 'react-router-dom HOT 3
- [TRAINING] bug: button retained in memory after removed from DOM
- bug: scroll element not reachable in CI HOT 1
- bug: occasional page animation issues HOT 2
- bug: ion-item + ion-checkbox on 'start' slot not respect width on v8 (v7 was ok) HOT 1
- feat: ion-datetime add calendar day highlight customclass HOT 1
- bug: inconsistency in the style of highlighted dates HOT 1
- bug: Cannot change display mode of the component dynamically HOT 1
- bug: angular standalone modal controller from compoent class getting error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-framework.