elementUi里面的el-input框有時候無法輸入的問題


項目中有出現需要輸入內容的時候,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無法輸入的問題了。 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM