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

[bug] 未判断 dragEl.parentNode对象是否存在就访问了其属性 #2336

Open
likethewindblows opened this issue Dec 12, 2023 · 1 comment

Comments

@likethewindblows
Copy link

在1.15.0的sortablejs中的sortable.core.esm.js文件中存在未判断对象是否存在就访问其属性的问题,导致报错Cannot read properties of null (reading 'Sortable1702364076767')

1.compelted方法 1945行
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
2._checkOutsideTargetEl方法 1209行
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);

期望在访问dragEl.parentNode属性时先判空dragEl.parentNode

@TomDeSmet
Copy link

I have this issue as well. When dragging very fast, this error makes Sortable crash.

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