-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
IE11环境下Input组件清空异常 #2592
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
Comments
这是严格模式下导致的 首先这是发生在event上的, 在源码内部是这样实现点击清除图标清除输入内容的
可以看到这里对event的target进行了劫持并修改了writeable, target属性中有个configureable属性,该属性默认为false表示对象上的属性是只读的, 在严格模式下修改是会报`typeError ' |
想问这个问题解决了吗 |
我放弃在IE11中使用清除功能了 |
分享一下我的方法: |
遇到了同样的问题 |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
1.6.4
Environment
browser: IE11 ant-design-vue: 1.6.1
Reproduction link
Steps to reproduce
基础的Input组件,声明allowClear属性,chrome删除正常,ie11报错:Error in v-on handler: "TypeError: strict 模式下不允许分配到只读属性"
What is expected?
ie可以正常删除
What is actually happening?
Error in v-on handler: "TypeError: strict 模式下不允许分配到只读属性"
The text was updated successfully, but these errors were encountered: