editor
editor copied to clipboard
[BUG] LinkDialog position is offset when the parent was translated with css transform
- [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [x] I have read the documentation and cannot find an answer.
Describe the bug The LinkDialog popup is off when the parent has a css transform to translate it. This is a common pattern in dialogs/drawers like the ones in shadcn.
Reproduction https://codesandbox.io/p/github/mdx-editor/repro-starter/csb-qspqgf/draft/misty-voice
To Reproduce Steps to reproduce the behavior:
- Make a container element with a transform style to translate the element
- Make an instance of the editor inside and enable link dialog
- Create a link, observe the link dialog is off
Expected behavior Link dialog should be in the right position
Screenshots
Desktop (please complete the following information):
- OS: MacOS
- Browser: Chrome
Additional context Add any other context about the problem here.
Having the same issue