Skip to content

a-input添加allow-clear属性,点击删除图标报target.cloneNode is not a function #7814

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

Closed
1 task
kwaynet opened this issue Aug 31, 2024 · 2 comments
Closed
1 task

Comments

@kwaynet
Copy link

kwaynet commented Aug 31, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.0

Environment

vue:3.3.13

Reproduction link

https://github.com/vueComponent/ant-design-vue

Steps to reproduce

1、页面代码输入框


2、页面显示输入框,输入数据123,点删除图标时效

What is expected?

能清除输入框里面的值

What is actually happening?

不能清除输入框里面的数据,并且控制台弹出错误提示,错误提示如下
Uncaught TypeError: target.cloneNode is not a function
at resolveOnChange (ant-design-vue.js?v=8574f413:61480:34)
at handleReset (ant-design-vue.js?v=8574f413:61869:7)
at callWithErrorHandling (chunk-4SOU3IJP.js?v=8574f413:1581:18)
at callWithAsyncErrorHandling (chunk-4SOU3IJP.js?v=8574f413:1589:17)
at HTMLSpanElement.invoker (chunk-4SOU3IJP.js?v=8574f413:10068:5)

@kwaynet
Copy link
Author

kwaynet commented Aug 31, 2024

<a-form-item label="系统SKU" class="smart-query-form-item"> <a-input v-model:value="queryForm.viomallSku" allow-clear/> </a-form-item>

@cc-hearts
Copy link
Contributor

ref #7523

@kwaynet kwaynet closed this as completed Sep 4, 2024
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

2 participants