Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: After pasting a link, I focused on the URL input and pressed Ctrl+Z (undo). The latest node inserted was the link, but the other part of the text is being undone, and the undo command isn't reflected in the tree view. #6714

Open
Nagendra7509 opened this issue Oct 8, 2024 · 1 comment

Comments

@Nagendra7509
Copy link

I typed some text and pasted a link. After clicking on the URL input and pressing Ctrl+Z (Undo), the other text was undone instead of undoing the link. However, this action was not reflected in the tree view, leaving me unsure if the undo command was executed.

Upon pressing Ctrl+Z again, the focus shifted back to the URL input, and the previously removed text was restored, indicating that the undo command was executed.

After performing the undo action twice, I returned to the initial state.

Peek.2024-10-08.11-47.mp4

Lexical version: 0.18.0

Steps To Reproduce

  1. Enter some text in the editor.
  2. Paste the link.
  3. Click on the Edit icon in the Link Popup.
  4. Press Ctrl + Z.
  5. Again Press Ctrl + Z.
@Nagendra7509 Nagendra7509 changed the title Bug: After pasting a link, I focused on the URL input and pressed Ctrl+Z (undo). The latest node inserted was the link, but the other of the text is being undone, and the undo command isn't reflected in the tree view. Bug: After pasting a link, I focused on the URL input and pressed Ctrl+Z (undo). The latest node inserted was the link, but the other part of the text is being undone, and the undo command isn't reflected in the tree view. Oct 8, 2024
@RajaTheKing826
Copy link

I've encountered the same issue and have been affected by it as well. Is there a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants