When the el-input type is set to number, the cursor of the Chinese input method moves up

Foreword:

      There is a bug in element’s input box, that is, when he sets the type number, you use the Chinese input method to input, click the space to confirm, and his cursor will move to it.

Problem display:

Solution to the problem:

Add the following code in css, find the class name of his input box , and then add the following code to change his line-height

/**
* 解决el-input设置类型为number时,中文输入法光标上移问题
**/
.el-input__inner{
  line-height: 1px!important;
}

 

Guess you like

Origin blog.csdn.net/weixin_44727080/article/details/113178558