如何解决ionic应用程序中的文本区域选择问题?

时间:2021-07-13 01:47:57

I have a simple textarea:

我有一个简单的文本区域:

<textarea></textarea>

When I enter multiple lines and then press backspace iOS starts deleting letters then words. When it switches to "words mode" it shows selection, which is lagging behind and misplaced. It's better to see once:

当我输入多行,然后按backspace iOS开始删除字母,然后单词。当它切换到“文字模式”时,它显示了选择,这是滞后和错位的。最好只看一次:

http://i.imgur.com/e1GC8PI.gifv

http://i.imgur.com/e1GC8PI.gifv

This behavior happens on real iPhone 5 device too. It cannot be reproduced from regular Safari.

这种行为也发生在真正的iPhone 5设备上。它不能从普通的狩猎中复制。

How this can be fixed?

如何解决这个问题?

1 个解决方案

#1


0  

this was caused by autocorrect on iOS, simple add following to the textarea could solve problem:

这是由iOS上的自动纠错导致的,简单的添加下面的文本区域可以解决问题:

<textarea autocorrect="off"></textarea>

#1


0  

this was caused by autocorrect on iOS, simple add following to the textarea could solve problem:

这是由iOS上的自动纠错导致的,简单的添加下面的文本区域可以解决问题:

<textarea autocorrect="off"></textarea>