Chrome for Android

I encounter a strange error with contentedtible elements in Chrome for Android (v3.1.0.1650.59).

<div contenteditable="true">
     Lorem ipsum dolor sit amet, consectetur, mi euismod
</div>

When the user gives focus to the input and discards the end of the input to move the cursor to the end, the spellcheck line does not match the location rule - these are a few characters . Then, when the user clicks on the delete symbol, part of the text before the carrots begin to scramble .

This only seems to be a problem if the last word in the input is spelled incorrectly, so auto-replace suggestions are displayed. If the last word is spelled correctly, the problem does not exist.

The code can be found here: https://dl.dropboxusercontent.com/u/29148332/contenteditable.html

Is there something in my / css markup that causes this problem, or is it a Chrome bug for Android?

+4
source share
1 answer

Unfortunately, this is a bug with the Android WebView class, which apparently has been a known issue since 2013. I spent hours trying to fix it because it was unbearable, and found out that the keyboard was lagging behind the contents in the element, causing these strange cursor locations and problems with gas station. Apparently, this was not fixed after 3 years, so I assume that something is terribly wrong.

, - Android- , HTML bbcode.

0

Source: https://habr.com/ru/post/1523390/


All Articles