microsoft / microsoft/roosterjs

CompositionEnd event is not triggering input event

Open
#3,206 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
190
Avg merge
1d 8h
Merged PRs (30d)
16

Description

Describe the bug
CompositionEnd event is not triggering input event in roosterJS version 9.0.2, causing updated content miss and not getting captured.

This event is getting triggered in legacy roosterJS V8 version. This is causing content added via drop down for multiple different languages using IME Keyboard is not getting captured.

To Reproduce
Steps to reproduce the behavior:

  1. Ensure you have installed Japanese language package.
  2. Go to 'https://microsoft.github.io/roosterjs/index.html
  3. Type any letter in Japanese and notice events triggered
    Expected behavior
    InputEvent is expected to be triggered before CompositionEnd event to capture typed text in different launguages.

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Added screenshots of events triggered when Japanese characters are typed for Legacy demo and latest demo site.

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the latest demo at https://microsoft.github.io/roosterjs/index.html and compare its composition and input event behavior with the legacy RoosterJS V8 demo. Reproduce the issue using Japanese IME input, then trace the editor event handling to determine where the expected InputEvent is missing. Done means the updated content is captured and the relevant event sequence matches the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.