Repository navigation
Need help with edit link popover 馃槉 #635
Unanswered
antonykamp
asked this question in
Q&A
Replies: 1 comment
|
You need to add autofocus to your input inside LinkEditForm |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey everyone 馃憢
I have an issue regarding building my own edit link dialog. I'd really appreciate your help here.
This is a minimal version of the popover (implemented with radix-ui primtives).
Code Snippets
markdown-editor.tsxLinkButton.tsxInsertLinkPopover.tsxIssue
My current issue is the following. When you
The result is that we shortly see the edit form and then the preview again. If you click in the near of the link in the preview window and then on the edit button it works. I was able to prove, that it shortly changes the state from "preview" to "edit", but instantly back again. The same thing happen when you want to edit an existing link.
This video contains show the issue with a styled version of the editor:
Screen.Recording.2024-11-19.at.07.39.48.mov
I would greatly appreciate your help and any ideas 馃挌 The architecture of the MDX editor is very interesting and fascinating. That's why I want to understand the full issue behind my mistake 馃槆 If you need any additional information, please feel free to reach out!
All reactions