The .moveable-control-box blue rectangle is misplaced in certain situations.
aliveornot opened this issue · comments
aliveornot commented
Environments
- Framework name: react
- Framework version: react 18
- Moveable Component version: react-moveable 0.56.0
- Testable Address(optional):
https://codesandbox.io/p/sandbox/moveable-issue-fygz4h?file=%2Fsrc%2FApp.tsx%3A9%2C24
Description
Hi, thanks a lot for your amazing library. I'm here to report an erroneous behaviour.
- If one of "tr", "td", "thead", "th" tags in a parent with
position:static
is selected, the blue moveable guide line appears in a wrong position. - interestingly, a "div" in a parent "div" with `position:static' behaves just fine.
The image below illustrates this erroneous situation. You can visit the testable address if you want to try yourself.