首先看你自己的的版本好,如果在2.6.9以上,我是在git上找到的解决办法,记录一下,希望可以帮到有需要的小伙伴。

在项目中找 node_modules > vux > x-input > index.vue >找到下面Code 代码进行修改即可

VUX version

2.9.4

OS/Browsers version

安卓手机

Vue version

2.6.10

Code

在x-input.vue
onBlur ($event) {
      this.setTouched()
      this.validate()
      // this.isFocus = false
      this.$emit('on-blur', this.currentValue, $event)
    }
改为
onBlur ($event) {
      setTimeout(() => {
        this.setTouched()
        this.validate()
        this.isFocus = false
        this.$emit('on-blur', this.currentValue, $event)
      }, 0)
    }

focus () {
        this.$refs.input.focus()
    }
改为
focus () {
      setTimeout(() => {
        this.$refs.input.focus()
      }, 0)
    }
就能解决

Steps to reproduce

在安卓手机微信操作输入框,点击清空图标

What is Expected?

正常使用

What is actually happening?

点击清空没反应

 

相关文章:

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