Vuetify: [Bug Report] v-text-field within v-dialog - text cursor does not appear in correct spot when on iPhone

Created on 13 Dec 2017  路  20Comments  路  Source: vuetifyjs/vuetify

Versions and Environment

Vuetify: 1.0.0-alpha.2
Vue: 2.5.10
Browsers: Safari
OS: iOS

Steps to reproduce

https://vuetifyjs.com/components/dialogs

Open example #5 Forms and click on the fields...

Expected Behavior

The text cursor would appear in the correct field

Actual Behavior

The text cursor sometimes appears to be many pixels below or above the field, yet the inputted text does appear in the correct spot.

Reproduction Link

https://codepen.io/anon/pen/baNdXV?&editors=101

VDialog bug help wanted platform specific

All 20 comments

Please update the reproduction link (save it first before copying the link)

Any recommendations on this? I swapped out the text fields for regular html 5 inputs and they have the same issue. This is an issue preventing a launch of multiple sites so hopefully I can get a work around besides dumping the dialogs all together...

Which iPhone and iOS version? Just checked the codepen on iPhone SE with iOS 10.2 and could not reproduce in any of the text fields

Using a Iphone 7 version 11.1 currently. I have tried on a few other Iphones with the same result. Everything seems to work accept when interacting with they keyboard. I think the change of height related to the keyboard opening is what bumps the cursor out of alignment with the selected field.

The theory above has proven wrong based on my last test which I only included default html5 inputs. The cursor was out of alignment even when using default inputs.

More information

https://hackernoon.com/how-to-fix-the-ios-11-input-element-in-fixed-modals-bug-aaf66c7ba3f8
https://bugs.webkit.org/show_bug.cgi?id=176896

There seems to be conflicting information on if this bug is fixed in iOS 11.3 beta or not

According to the first link posted by @nekosaur, the bug is fixed in iOS 11.3.

Can anyone confirm that it's fixed now?

Sorry, I don't have a iOS device, so I can't test. I just stumbled across this issue and thought I update it with the news in the linked article.

Can anyone that has an iPhone test this on v1.1 alpha?

I can鈥檛 seem to reproduce in either original code pen or the same code pen with @next vuetify urls on iPhone X, Safari on latest OS. Only place where I can come up with a shifted cursor is during autocomplete suggestions which appears to be functioning as expected. I cannot repro anything similar in the links posted by neko.

I'm having the same issues with the cursor being out of place in safari/chrome ios when using forms inside a dialog (fullscreen and not in fullscreen mode) in text boxes and also in selects with auto-completion. What makes it very interesting is that it doesn't always happen. I'm having these issues in a client's project so I'm not free to submit the code but I will try to figure out a way to reproduce it. I might be able to post a screencast.

"vuetify": "^1.0.18"

@sebastianmacias This thread is specifically talking about v1.1-alpha+ . If you are having an issue on v1.0 branch, please check to see if it has already been reported or create a new issue with the issue creator.

Can anyone that has an iPhone test this on v1.1 alpha?

I will test it shortly and post what I find

Tested with 1.1.0-alpha.4 and 1.1.0-beta.2. Same outcome as 1.0.18.

Here is an screencast.

Here is another example with 1.1.0-alpha.4: https://youtu.be/m4nBYlyDNj8

What are you using to test on mobile?

What are you using to test on mobile?

browserstack.com, however this bug was reported by a person using an actual iPhone X

If you want I can send you the credentials to test it in our staging server and give you access to my browserstack.com account

The issue can be fixed by changing the position of the dialog to absolute. Here is an: screencast

Not reproducable, officaly fixed in iOS 11.3 for all actual devices (iPhone 5S+). Tested on IPhone 7, IPhone X, IPad Air 2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

smousa picture smousa  路  3Comments

sebastianmacias picture sebastianmacias  路  3Comments

ricardovanlaarhoven picture ricardovanlaarhoven  路  3Comments

Antway picture Antway  路  3Comments

aaronjpitts picture aaronjpitts  路  3Comments