microsoft / microsoft/roosterjs
CompositionEnd event is not triggering input event
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:
- Ensure you have installed Japanese language package.
- Go to 'https://microsoft.github.io/roosterjs/index.html
- 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.
Added screenshots of events triggered when Japanese characters are typed for Legacy demo and latest demo site.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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