[GH-ISSUE #5017] [Issue]: Expanded editors move the caret to the end after typing quotes #2772

Closed
opened 2026-10-21 05:55:12 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5017

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Typing an ASCII double quote (") or apostrophe (') in an expanded text editor moves the caret from the chosen insertion point to the end of the text. This is a regression of the caret-preservation fixes in #3934 and #4656.

Expected behavior

Quotes and apostrophes should be inserted or typographically formatted at the active caret position, and the caret should remain directly after the inserted character.

Actual behavior

After typing " or ' in the middle of existing text, the caret jumps to the end, so subsequent typing is appended in the wrong place.

Steps to reproduce

  1. Open an editable text field that supports the expanded editor.
  2. Expand the editor and place the caret in the middle of existing text.
  3. Type " or '.
  4. Observe that the caret moves to the end of the text.

Environment

  • Marinara Engine version: 2.4.2 current main/staging
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs or recording provided. The regression is input/selection behavior and should be covered with a deterministic browser test.

Additional context

Keep the fix narrowly scoped to selection preservation in the shared expanded-editor path. No editor redesign, dependency change, or version bump.

Related: #3934, #4656.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 14, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5017 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Typing an ASCII double quote (`"`) or apostrophe (`'`) in an expanded text editor moves the caret from the chosen insertion point to the end of the text. This is a regression of the caret-preservation fixes in #3934 and #4656. ## Expected behavior Quotes and apostrophes should be inserted or typographically formatted at the active caret position, and the caret should remain directly after the inserted character. ## Actual behavior After typing `"` or `'` in the middle of existing text, the caret jumps to the end, so subsequent typing is appended in the wrong place. ## Steps to reproduce 1. Open an editable text field that supports the expanded editor. 2. Expand the editor and place the caret in the middle of existing text. 3. Type `"` or `'`. 4. Observe that the caret moves to the end of the text. ## Environment - Marinara Engine version: 2.4.2 current `main`/`staging` - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs or recording provided. The regression is input/selection behavior and should be covered with a deterministic browser test. ## Additional context Keep the fix narrowly scoped to selection preservation in the shared expanded-editor path. No editor redesign, dependency change, or version bump. Related: #3934, #4656. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:55:12 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Aug 14, 2026):

Owned by @SpicyMarinara. I am reproducing this on exact staging and will keep the fix to the shared expanded-editor selection path plus a focused browser regression.

<!-- gh-comment-id:5292446450 --> @SpicyMarinara commented on GitHub (Aug 14, 2026): Owned by @SpicyMarinara. I am reproducing this on exact `staging` and will keep the fix to the shared expanded-editor selection path plus a focused browser regression.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 14, 2026):

Closing as a duplicate of #4656, which has been reopened because the quote-specific caret regression returned.

<!-- gh-comment-id:5292455800 --> @SpicyMarinara commented on GitHub (Aug 14, 2026): Closing as a duplicate of #4656, which has been reopened because the quote-specific caret regression returned.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2772
No description provided.