项目中有出现需要输入内容的时候,input框有时候会无法输入进去,感觉像是被禁用了!
代码如下:

<el-input v-model="formBank.name" clearable autocomplete="off"></el-input>

解决方法 this.$forceUpdate();

<el-input v-model="formBank.name" clearable @input="change($event)" autocomplete="off"></el-input>
change (e) {
    this.$forceUpdate()
}

 

这样子就可以解决input无法输入的问题了。 

相关文章:

  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2021-12-18
  • 2023-01-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-02-03
  • 2021-11-09
  • 2021-08-03
相关资源
相似解决方案