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

uniapp 中 ant-form-input 触发 confirm 事件报错 #1176

Closed
2 tasks
Chaos0221 opened this issue Apr 30, 2024 · 0 comments
Closed
2 tasks

uniapp 中 ant-form-input 触发 confirm 事件报错 #1176

Chaos0221 opened this issue Apr 30, 2024 · 0 comments

Comments

@Chaos0221
Copy link

Chaos0221 commented Apr 30, 2024

组件

ant-form-input

基础库版本

  • 2.x

设备机型

iPhone 13

手机系统

  • iOS

APP

uniapp 支付宝端

组件库版本

2.x

预期行为

触发 confirm 事件,获取 value

复现步骤

输入后回车触发 confirm,报错:Cannot create property 'stopPropagation' on string 'a'/TypeError: Cannot create property 'stopPropagation' on string 'a'
image

复现 demo

// template
 <ant-form-input label="x" name="name1" ref="formItemRefs"  @confirm="inputConfirm" />

// js
  inputConfirm: (value, e) => {
    console.log('value:', value)
    console.log('e:', e)
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant