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

confim组件弹出的输入框,在ios下很难弹出输入法 #2033

Closed
hjmmc opened this issue Sep 25, 2017 · 3 comments
Closed

confim组件弹出的输入框,在ios下很难弹出输入法 #2033

hjmmc opened this issue Sep 25, 2017 · 3 comments

Comments

@hjmmc
Copy link

hjmmc commented Sep 25, 2017

注释掉组件内的setTimeout即可正常弹出输入法

   showValue (val) {
      this.$emit('input', val)
      if (val) {
        if (this.showInput) {
          this.msg = ''
          // setTimeout(() => {
          //   if (this.$refs.input) {
          //     console.log('focus')
          //     this.$refs.input.focus()
          //   }
          // }, 300)
        }
        this.$emit('on-show') // emit just after msg is cleared
      }
@airyland
Copy link
Owner

非组件问题,iOS 实现不了在 confirm 里主动获取焦点。

@airyland
Copy link
Owner

焦点的问题在下个将发布的版本修复了。

@gh0sthx
Copy link

gh0sthx commented Feb 29, 2020

为什么还是存在这个问题,打开confirm,ios没有自动focus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants