You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

实现Angular拖拽网格时出现Maximum call stack size exceeded等错误求助

Angular CDK拖拽网格实现问题求助

我正在尝试实现一个可拖拽网格,参考了Angular CDK拖拽的相关示例。

遇到的问题如下:

  • 首先CdkDropList enter()方法已被弃用,我找到替代方案后,拖拽元素时控制台出现大量错误:
    • Maximum call stack size exceeded,错误触发于代码行:
      this.placeholder._dropListRef.enter(drag._dragRef, drag.element.nativeElement.offsetLeft, drag.element.nativeElement.offsetTop);
      
    • Uncaught TypeError: Cannot read properties of undefined (reading '_getSiblingContainerFromPosition') at DragRef._updateActiveDropContainer (drag-drop.mjs:959:51)
    • ERROR TypeError: Cannot read properties of undefined (reading 'data') at Object.next (drag-drop.mjs:3584:64)

我尝试寻找解决方案但没有结果,恳请技术人士提供帮助,提前致谢!

内容的提问来源于stack exchange,提问作者anvyn

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.16 06:35:00