케이스 ce-0007-undo-breaks-composition-ko · 시나리오 scenario-undo-with-composition

IME 컴포지션 중 Undo가 예상보다 더 많은 텍스트를 지움

OS: Windows 11 기기: Desktop or Laptop Any 브라우저: Chrome 120.0 키보드: Korean (IME) 초안
undocompositionime

현상

contenteditable 요소에서 IME 컴포지션이 활성 상태일 때 Undo를 누르면 예상보다 더 많은 텍스트가 제거되며, 현재 컴포지션 이전에 커밋된 문자도 포함됩니다.

재현 예시

  1. 편집 가능한 영역에 포커스합니다.
  2. 짧은 단어를 입력하고 완료합니다.
  3. 한국어 IME를 활성화하고 다른 단어 컴포지션을 시작하지만 완료하지 않습니다.
  4. Ctrl+Z(또는 플랫폼별 Undo 단축키)를 누릅니다.

관찰된 동작

  • 활성 컴포지션과 이전에 커밋된 문자가 모두 제거됩니다.
  • 이벤트 로그는 사용자 의도와 명확하게 매핑되지 않는 beforeinput / input 이벤트 시퀀스를 표시합니다.

예상 동작

  • Undo는 마지막으로 커밋된 편집 단계만 되돌리거나, 최소한 동일한 환경에서 네이티브 컨트롤과 동일한 방식으로 동작해야 합니다.

참고사항

  • 이 동작은 contenteditable 위에 자체 모델을 구축하는 제품에서 예측 가능한 텍스트 편집 및 undo/redo 스택을 방해할 수 있습니다.

이 시나리오의 변형

케이스 OS 브라우저 상태
ce-0007-undo-breaks-composition-ko Windows 11 Chrome 120.0 초안
ce-0208-korean-ime-undo-composition-chrome-ko Windows 11 Chrome 120.0 초안
ce-0209-japanese-ime-undo-composition-safari-ko macOS 14.0 Safari 17.0 초안

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: Windows 11
Device: Desktop or Laptop Any
Browser: Chrome 120.0
Keyboard: Korean (IME)
Your environment
Sample HTML:
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.