์ผ€์ด์Šค ce-0027 ยท ์‹œ๋‚˜๋ฆฌ์˜ค scenario-copy-selection-behavior

Selection is lost after copying content in contenteditable

OS: macOS Ubuntu 22.04 ๊ธฐ๊ธฐ: Desktop or Laptop Any ๋ธŒ๋ผ์šฐ์ €: Safari 120.0 ํ‚ค๋ณด๋“œ: US ์ดˆ์•ˆ
copyselectionsafari

์ด ํŽ˜์ด์ง€๋Š” ์•„์ง ๋ฒˆ์—ญ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค

ํ˜„์žฌ ์˜์–ด ์›๋ฌธ์„ ํ‘œ์‹œํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฒˆ์—ญ์— ๊ธฐ์—ฌํ•ด ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

Phenomenon

After copying selected text in a contenteditable region using Cmd+C, the selection is lost in Safari. The user must re-select the text to perform additional operations.

Reproduction example

  1. Create a contenteditable div with some text.
  2. Select a portion of text.
  3. Copy the selection (Cmd+C).
  4. Observe whether the selection remains.

Observed behavior

  • In Safari on macOS, the selection is lost after copying.
  • The caret may move to an unexpected position.
  • The user must manually re-select text to continue editing.

Expected behavior

  • The selection should remain after copying.
  • The user should be able to continue working with the selected text.
  • Or, the caret should be positioned predictably after the copy operation.

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: macOS Ubuntu 22.04
Device: Desktop or Laptop Any
Browser: Safari 120.0
Keyboard: US
Your environment

Use this editable area to reproduce the described case.

Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.