0

I currently have an iOS webview with a textbox that doesn't work. Specifically, when the webview is selected the keyboard appears but no caret appears, and any keypresses have no effect. What could be causing this? I have already ruled out the textbox being "disabled" or "readonly", since the keyboard does not appear when those two properties exist.

2 Answers 2

1

I was able to find the answer based on a similar working textbox that had an additional class. Apparently iOS requires that the textbox have user-select:text as part of the CSS. Adding a class that had user-select:text enabled fixed the problem.

Sign up to request clarification or add additional context in comments.

Comments

0

add this css property to your inputs.

-webkit-user-select: text; 

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.