-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Placeholder & Scroll flicker on input focus #10272
Comments
Hello, thanks for using Ionic! I am going to close this issue as a duplicate of #10257. |
@jgw96 I did have a look at that issue beforehand: I understand these issues are similar, but having a look at the The webview and screen bounce / jump around in that issue #10257 but the screen is fine in my example, only the If they come down to the same problem, then I'm happy for this issue to be closed, but if you could just take a closer look that would be great. Thanks. |
I agree, i have a similar issue with no item-right or item-left |
The issue @jgw96 mentioned is not similar to this one. I'm also getting the same exact issue. |
Can confirm. Same issue.
global packages:
local packages:
System:
|
@jgw96 I think this needs to be re-opened. I get this issue now using the latest version of the framework (running on an iPhone SE - iOS 11.2.2). It seems to be an issue with the ion-label because when I remove that, the wobbling on the input field goes away. Changing the attribute on the ion-label from fixed to floating also removes the wobbling. One other point - I think the issue only occurs if there is a scroll of the screen as the field receives focus. |
I've found a fix for this. Turns out that Ionic clones focused input elements on scroll in order to squash some bugs that can occur during scrolling. Looks like this is only iOS related. For whatever reason the cloned input doesn't inherit or respect the combined right-hand margin of the parent The effect of this is only obvious when the input is aligned to the right (although that's got to be fairly common? ..if you're combining Ionics right-aligned .input-ios.cloned-input[text-right] {
padding-right: $content-padding !important;
} @jgw96 please add this to your internal bug tracker for v4 🙏 (The worst part is that this happens every time you focus a right-aligned input on iOS - the screen scrolls to the input automatically, so you get that horrible shift every single time.) |
Will track for v4, currently looking at some other scroll flickering issues and nailing keyboard is a priority |
I've found solution that works for me. |
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. |
Ionic version: (check one with "x")
I'm submitting a ... (check one with "x")
Current behavior:
On iOS.
When focusing an
ion-input
if the view needs to scroll up, the placeholder and input jank (visual glitches). The cursor also blinks various times in rapid succession until focus is complete.Important: This only happens on the device itself (since the Keyboard appears) and cannot be reproduced in a desktop environment.
Expected behavior:
A normal focus of an input.
Steps to reproduce:
Simply using the blank project:
ionic start InputScrollJank blank --v2
cd InputScrollJank
./src/pages/home/home.html
to include anion-list
with enough items to trigger a scroll when the keyboard appears (my example code is below).ionic run ios --device
ion-input
in the list (so the webview scrolls)Related code:
./src/pages/home/home.html
Other information:
Here's a screen recording. The more complex the page, the more the placeholder and input jump around.
https://dl.dropboxusercontent.com/u/17542144/InputScrollJank.mov
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: