medium-editor icon indicating copy to clipboard operation
medium-editor copied to clipboard

Duplicated first letter on android

Open steveetm opened this issue 5 years ago • 2 comments

Duplicated character

On android when you type into a mediumeditor managed input, the first letter is duplicated

Steps to reproduce

  1. Open Chrome on an android device(tested on Samsung and LG phones)
  2. tap into the mediumeditor field
  3. type two letters (e.g. 'a' and 'b')

Expected behavior: Two letters in medium editor ('ab') Actual behavior: The first letter is duplicated ('aab')

Link to an example: (https://jsfiddle.net/p95ysr2z/)

Versions

  • medium-editor: latest
  • browser: Chrome
  • OS: Android 7+

Cannot reproduce on desktop, no matter if device emulation is turned on. Also works fine on device with physical keyboard attached.

steveetm avatar Jan 30 '19 15:01 steveetm

Above jsfiddle can reproduce on desktop chrome (mac at least) with IME enabled (e.g. Chinese input method). And also reproducable in Safari (mac).

ulion avatar Mar 03 '19 13:03 ulion

Yeah, I get the same issue, it seems to be caused by the double charset. Simply removing utf-8 charset from the style link works. https://jsfiddle.net/p95ysr2z/#&togetherjs=mIyVol5A8w

stefanpejcic avatar Jul 20 '19 21:07 stefanpejcic