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
- Create a contenteditable div with some text.
- Select a portion of text.
- Copy the selection (Cmd+C).
- 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.