ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
191 stars 177 forks source link

[fix][iOS 17 beta] screen not scrolled when keyboard displayed on IOS 17 beta #177

Open powowbox opened 1 year ago

powowbox commented 1 year ago

Perhaps the issue will be fix on the final version of iOS 17. If it shouldn't be the case, here is a fix.

The keyboard height is not correct the first time callbacks onKeyboardWillShow and onKeyboardDidShow are displayed. The value is 44 instead of an awaited value around 300.

Since the next time the callbacks are called, the height value is correct, it seems enough to ignore the first calls by setting a guard when the keyboard height is too low to be the right one.