iview V-model fails in specific scenarios in [Bug Report]textarea

ncgqoxb0  于 2022-11-19  发布在  iOS
关注(0)|答案(5)|浏览(153)

Environment

windows 10/ ie 11/ vue 2.5.16

https://jsfiddle.net/Lstoryc/6yvwmx8k/

Steps to reproduce

jsfidder打不开的话 本地写个html也可以,其实问题就是 如果placeholder值为空时,IE下第一次输入一个字符 比如 1 无法触发v-model, 详见下面代码, value8输入 1 的时候是不触发v-model, 继续输入才有反应

===

iview value7 with placeholder: {{ value7 }} iview value8 without placeholder: {{ value8 }}

var Component = Vue.extend(Main)
new Component().$mount('#app')

===

What is expected?

placeholder='' 也能在IE 11下正常触发v-model

What is actually happening?

IE 11下输入第一个字符未触发v-model变化

bqf10yzr

bqf10yzr1#

Translation of this issue:

Environment
Windows 10/ ie 11/ Vue 2.5.16
Reproduction link
https://jsfiddle.net/Lstoryc/6yvwmx8k/
Steps to reproduce
Jsfidder can not open a local write HTML can, in fact, the problem is that if the placeholder value is empty, the first time IE input a character such as 1 can not trigger V-model, see the following code, value8 input 1 is not triggered V-model, continue to input the reaction

<! DOCTYPE html>

iview value7 with placeholder: * with iview value8 without placeholder: "

rur96b6h

rur96b6h2#

我暂时通过 placeholder="空格" 去避开这个问题

wz1wpwve

wz1wpwve3#

I too ran into the same problem today.
I don't speak Chinese, so it wasn't easy finding answers on the internet. Finally found this!
I've literally tried everything but the only solution currently seems to be placeholder=" "

Can we get some resolution here?

55ooxyrt

55ooxyrt4#

If someone tries to paste text into the Input, the v-model doesn't get updated unless another change is made in the input.

相关问题