-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
bug: modal closing animation issue if keyboard open #20686
Comments
@tetkosimi I catch similar issue. No clear solution, but solved with timeout: if (this.keyboard.isVisible) {
setTimeout(() => this.modal.dismiss(), 150);
} else {
this.modal.dismiss();
} |
I encountered a similar issue on modals with custom height and width. The closing animation shows only for the height of the modal. Its easy to reproduce by setting --height: 50% on the modal. For now I have opted to not show the animation at all using animate: false property. |
Confirmed, this have been fixed in 5.0.5. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Keyboard resize the ion-app element, when keyboard opens.
When you have an opened ion-modal with keyboard, and you close the modal, both keyboard and modal close animations are running in same time.
Keyboard plugin will revert back the height of ion-app after close animation have been finished, and the ion-modal have absolute position so modal animation will end at bottom of ion-app what have height [screen height]-[keyboard height] in this time.
Ionic version:
[x] 5.0.x
Current behavior:

Expected behavior:
Nice animation even when keyboard is closing.
Steps to reproduce:
this.modalCtrl.dismiss();
Other information:
I think, fixed position for modals may resolve this issue.
All types of modals are affected.
Ionic info:
The text was updated successfully, but these errors were encountered: