-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disableScroll method disappear #42
Comments
This boggles my mind. Amidst the sea of seemingly infinite Stack and Ionic forum posts about scrolling/keyboard issues, using the disableScroll method is the most common solution. And yet, they removed it from the currently supported plugin. |
Version 4.15.0 of what? The current keyboard plugin version is 2.1.3 |
On 4.15.0 disappear, I donwgrade version with npm install --save @ionic-native/keyboard@4.12.0 and works again |
|
I am also looking for an alternative. I do now have a glitch when arriving on a page with autofocus (the keyboard opens, covers half of the page and the header is hidden) |
+1 |
this function is crucial for iOS. haven't seen any other method stop the unwanted scrolling behavior. |
@manucorporat I see Thoughts on adding that back in? |
Hi @mlynch |
I was able to fix my keyboard resizing issues with this config preference: Sorry if this is obvious, but somehow I missed this option after hours of searching! |
@collindutter it worth giving a try, perhaps I can do the same. I just need to make sure it will work across the whole app |
Does not work |
npm install --save @ionic-native/keyboard@4.12.0 GOOOOOOOD |
This still didn't work for me. Then in deviceready I tried: But when I focus on an input it still scrolls. Am I missing something? |
maybe something you missed in the config.xml but this isn't the issue to discuss it at. this bug merely talks about a missing function.. |
This issue is really frustrating. hoping this get resolves by the ionic team |
Hi, did you get a solution? |
@mlynch everyone is referring to the @ionic/native wrapper for the keyboard. There was an issue where the wrapper wasn't using this cordova plugin before. See @mhartington 's response: danielsogl/awesome-cordova-plugins#2306 (comment) danielsogl/awesome-cordova-plugins#2743 on the version 4.15.0 of the native wrapper this was corrected but now this cordova plugin doesn't have the disableScroll functionality. https://github.com/ionic-team/ionic-native/blob/master/CHANGELOG.md |
Any news about this issue ? |
npm install --save @ionic-native/keyboard@4.12.0 🤦🏻♀️ |
I had a problem where the app would automatically scroll to the focused element whenever an element got focused, and there seemed to be no way to prevent this. Downgrading As it turns out, There is an undocumented (private) configration for the IonicModule called IonicModule.forRoot({scrollAssist: false}), Disabling scrollassist made the app no longer auto-scroll to focused elements on iOS. |
This comment has been minimized.
This comment has been minimized.
Any progress ? Kinda solved using :
I say "kinda" because it's still scrolling on textarea.. but that solve 90% of my problems. |
To fix this for me, the problem was that I had to switch from UIWebView to WKWebView and use cordova-plugin-ionic-keyboard. As noted here: https://github.com/ionic-team/cordova-plugin-ionic-keyboard#cordova-plugin-ionic-keyboard cordova keyboard is meant to work with WKWebView. I stumbled on this after digging around and landing on Max's comment: ionic-team/ionic-plugin-keyboard#305 (comment) Here's the docs for updating webviews: https://ionicframework.com/docs/v3/wkwebview/# |
@Heliks hid your comment as it's abusive and unproductive. Watch your behavior. We're going to be adding this feature back into either the keyboard plugin or the webview plugin and will provide an update once that is ready. |
why is this discussion even happening here? isn't the problem about the ionic-native wrapper or am i missing something? |
@heidji the ionic wrapper was using the old keyboard plugin, which is deprecated. The wrapper now uses this plugin, which doesn't have disableScroll method and people is complaining about it. |
@jcesarmobile oh i see it now, it just displays a warning that it was removed :D, sorry I misread the function |
disableScroll() method disappear in 4.15.0 version
what method one need use now?
The text was updated successfully, but these errors were encountered: