bounds 与 svg 元素不兼容

作者: kevin074创建于 2020年4月3日更新于 2026年9月27日
标签bugneeds-triage

Hi,下面是我尝试做的一个非常简单的使用案例。我可以确认,bounds 可以用于普通的 div,但是一旦将相同的设置切换到 SVG 内,它就不再起作用了。使用 bounds="parent" 会出错。使用 bounds="#mostouter" 并不会出错,但该功能无效。

内容来源: react-grid-layout/react-draggable