ionic-team / ionic-team/ionic-framework

bug: modal animation needs to account for viewport resizing when dismissing keyboard and modal

未关闭
#22,018 7 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
package: core type: bug
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

# Bug Report

**Ionic version:**
[x] **5.x**

**Current behavior:**
Issue originally reported here: [#20686](https://github.com/ionic-team/ionic-framework/issues/20686). Still seeing this on the latest version of Ionic Framework.

**Expected behavior:**
When dismissing a modal while the keyboard is open, the close animation should not be affected by the keyboard

**Steps to reproduce:**
Sample App here: https://github.com/cesaresantiago/keyboard-modal-dismiss-glitch

Run this code on an iOS device/simulator. Closing the modal by itself works fine, however, if the the keyboard is open the modal close animation closes to the height of the keyboard before snapping away the final 30% of the screen.

**Related code:**

**Ionic info:**

```
Ionic:
Ionic CLI : 6.11.0 (/Users/dallas/.nvm/versions/node/v14.6.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.3.2
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.0.8
@ionic/angular-toolkit : 2.3.3
Cordova:
Cordova CLI : 9.0.3 (cordova-lib@9.0.2)
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)
Utility:
cordova-res : 0.15.1
native-run : 1.0.0
System:
ios-sim : 8.0.2
NodeJS : v14.6.0 (/Users/dallas/.nvm/versions/node/v14.6.0/bin/node)
npm : 6.14.7
OS : macOS Catalina
Xcode : Xcode 11.6 Build version 11E708
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。