-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
event 事件监听实例上的currentTarget 为 null #8046
Comments
想通过
|
dataset 问题在 #9797 中修复,需要升级到 3.3.1+ |
事件中 currentTarget 为空是正常的,可以使用 target (参考)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
浏览器版本: Google Chrome 已是最新版本 版本 86.0.4240.198(正式版本) (x86_64)
使用框架: React
复现步骤
export default function Index() {
let [banner, setBanner] = useState({ list: [{ uri: '', link: null }] })
const handleRoute = (e) => {
}
return (
{banner.list.map((item, index) => (
<Image className="image" mode="widthFix" src={item.uri &&
${IMAGES_URL}${item.uri}
}>))}
)
}
期望结果
期望拿到 data-href 的值
实际结果
实际拿不到,且 event.currentTarget 为null,
DOM 实例上也并无data- 属性
环境信息
The text was updated successfully, but these errors were encountered: