اهلا ياجماعة،
لا يمكنني حقًا نشر مثال رمز معين لأنه مزدحم جدًا في الوقت الحالي ، لكنني أعتقد أنه قد عزل الخطوات المطلوبة لإعادة إظهار المشكلة.
تم إلقاء الخطأ في DragDropMonitor.prototype.canDropOnTarget
لأنه لم يتمكن من العثور على هدف مع targetID (من الواضح).
حالة الاستخدام: أنا أقوم ببناء شجرة قابلة للفرز وأحتاج إلى نقل العنصر الذي تم سحبه وتحويمه
بعد العقدة الأم:
على المزيد: أثناء حدوث الخطأ ، لا يزال يعمل.
شكر!
+1 أواجه هذه المشكلة أيضًا
يرجى تقديم مثال لإعادة إنتاج المشكلة. يمكنني إلقاء نظرة بعد ذلك.
ربما تم إصلاح هذا في 2.1.0.
سأغلق ولكن من فضلك أعلمني إذا لم يكن كذلك ، وسأعيد فتح.
gaearon قمت بالترقية مؤخرًا إلى رد فعل dnd v5 وتم تكرار هذه المشكلة مرة أخرى. يبدو أنها عملت بشكل جيد في 2.6.0
وأيضًا 3.0.2
ولكنها تتكسر في 4.0.5
و 5.0.0
.
أي أخبار عن هذا؟
gaearon أي تحديث؟
نفس المشكلة هنا
نفس الشيء هنا في 5.0.0
نفس المشكلة هنا
نفس المشكلة هنا
نفس المشكلة ، أي اقتراحات للإصلاح؟
أي شخص لديه أي حظ مع هذا؟
لدي هذه المشكلة في عينة مصدر خارجي لشجرة التفاعل والفرز. السحب إلى منطقة حمراء.
https://frontend-collective.github.io/react-sortable-tree/؟path=/story/advanced - السحب من مصدر خارجي
https://github.com/frontend-collective/react-sortable-tree/blob/master/stories/external-node.js
vendors~main.91acd83f50dfbcb80997.bundle.js:1 Uncaught Invariant Violation: Expected to find a valid target.
at module.exports (https://frontend-collective.github.io/react-sortable-tree/vendors~main.91acd83f50dfbcb80997.bundle.js:2:592)
at DragDropMonitorImpl.canDropOnTarget (https://frontend-collective.github.io/react-sortable-tree/vendors~main.91acd83f50dfbcb80997.bundle.js:2:186636)
at DropTargetMonitorImpl.canDrop (https://frontend-collective.github.io/react-sortable-tree/vendors~main.91acd83f50dfbcb80997.bundle.js:2:71541)
at https://frontend-collective.github.io/react-sortable-tree/main.91acd83f50dfbcb80997.bundle.js:1:132866
at DragDropContainer.getCurrentState (https://frontend-collective.github.io/react-sortable-tree/vendors~main.91acd83f50dfbcb80997.bundle.js:2:87049)
at DragDropContainer._this.handleChange (https://frontend-collective.github.io/react-sortable-tree/vendors~main.91acd83f50dfbcb80997.bundle.js:2:84210)
at handleChange (https://frontend-collective.github.io/react-sortable-tree/vendors~main.91acd83f50dfbcb80997.bundle.js:2:185746)
at dispatch (https://frontend-collective.github.io/react-sortable-tree/vendors~main.91acd83f50dfbcb80997.bundle.js:2:168058)
at Object.endDrag (https://frontend-collective.github.io/react-sortable-tree/vendors~main.91acd83f50dfbcb80997.bundle.js:2:199234)
at HTML5Backend.handleTopDragEndCapture (https://frontend-collective.github.io/react-sortable-tree/vendors~main.91acd83f50dfbcb80997.bundle.js:2:152270)
التعليق الأكثر فائدة
نفس المشكلة هنا