Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input框在h5环境下更改focus的值,无法获取焦点 #9777

Closed
Drjingfubo opened this issue Jul 13, 2021 · 0 comments · Fixed by #9805 or #9858
Closed

input框在h5环境下更改focus的值,无法获取焦点 #9777

Drjingfubo opened this issue Jul 13, 2021 · 0 comments · Fixed by #9805 or #9858
Labels
F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@Drjingfubo
Copy link

相关平台

H5

复现仓库

https://github.com/Drjingfubo/taroTest
浏览器版本: 谷歌
使用框架: Vue 3

复现步骤

123

setup() {
const isFocus = ref(false);
const focu = () => {
isFocus.value = true;
};

return {
  isFocus,
  focu,
};

},

期望结果

h5环境下点击123获取焦点

实际结果

h5环境下并没有获取到焦点

环境信息

👽 Taro v3.3.0


  Taro CLI 3.3.0 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.13.1 - ~/.nvm/versions/node/v14.13.1/bin/node
      Yarn: 1.22.10 - ~/.nvm/versions/node/v14.13.1/bin/yarn
      npm: 6.14.8 - ~/.nvm/versions/node/v14.13.1/bin/npm
    npmPackages:
      @tarojs/cli: 3.3.0 => 3.3.0 
      @tarojs/components: 3.3.0 => 3.3.0 
      @tarojs/mini-runner: 3.3.0 => 3.3.0 
      @tarojs/runtime: 3.3.0 => 3.3.0 
      @tarojs/taro: 3.3.0 => 3.3.0 
      @tarojs/webpack-runner: 3.3.0 => 3.3.0 
      babel-preset-taro: 3.3.0 => 3.3.0 
      eslint-config-taro: 3.3.0 => 3.3.0 

补充信息

在小程序端是可以获取到焦点,h5不行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
2 participants