-
Notifications
You must be signed in to change notification settings - Fork 112
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
直接用v-tap时,会报错,并且会把移动端下所有的默认click覆盖掉 #50
Comments
比如input file |
可以给我看下你的html代码和js代码吗 |
同样的报错 |
各位大佬?可以给下你们的html和js代码吗?只说报错我怎么知道什么情况怎么复现呢? |
源码中在touchend事件中调用 el.addEventListener('touchend', function (e) {
try {
Object.defineProperty(e, 'currentTarget', {// 重写currentTarget对象 与jq相同
value: el,
writable: true,
enumerable: true,
configurable: true
})
} catch (e) {
// ios 7下对 e.currentTarget 用defineProperty会报错。
// 报“TypeError:Attempting to configurable attribute of unconfigurable property”错误
// 在catch里重写
console.error(e.message)
e.currentTarget = el
}
e.preventDefault();
return touchend(e, el);
}, false);
} |
我也碰到这问题了,请问下最后是怎么解决的? |
自己copy 下代码,然后把判断value条件放在value.event = e; 赋值之前~ |
谢谢 解决了! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: