Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Input text field not showing on Ipad devices (Safari)

I have an input field in which I use ui-mask on. I was doing some QA and noticed that it shows when entering text on Ipad devices on Safari, I can see caret moving positions but i cannot see any text. This works fine on desktop browsers and mobile devices like nexus 5, samsung s6 but on ipad safari it doesn't work as expected.

I saw something online as regards to setting -webkit-user-select to text. I tried this and still it didn't work on ipad.

Would appreciate anyone who has any idea on how to resolve this bug

like image 266
user3775998 Avatar asked Nov 24 '25 17:11

user3775998


1 Answers

Just had the same problem and fixed it:

@supports (-webkit-overflow-scrolling: touch) {
    /* CSS specific to iOS devices */
    input, textarea {
        transform: translateZ(0px) !important;
    }
}
like image 142
Fabio Caccamo Avatar answered Nov 27 '25 08:11

Fabio Caccamo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!