primefaces / primefaces/primereact
Dropdown: filter IME Enter bug
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 8.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Pressing the Enter key to confirm a converted word in the Japanese IME causes the filter dialog to close unexpectedly.
This problem happen on Remix.
Vite is no problem.
Reproducer
https://stackblitz.com/edit/remix-run-remix-9ccvms25
System Information
System:
OS: Windows 11 10.0.22621
CPU: (16) x64 AMD Ryzen 7 9800X3D 8-Core Processor
Memory: 44.36 GB / 61.59 GB
Binaries:
Node: 20.15.0 - C:\Program Files\nodejs\node.EXE
npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.14.2 - C:\Program Files\nodejs\pnpm.CMD
Browsers:
Edge: Chromium (131.0.2903.51)
Internet Explorer: 11.0.22621.3527
Steps to reproduce the behavior
- Click Dropdown
- type
おんせん - press space key (convert word)
- press enter key (confirm convert word)
- Dropdown closed unexpectedly.
Expected behavior
- Do not close Dropdown
- Vite is no problem. idk why.
Possible solution
https://gist.github.com/CRC32EX/b05988bb96bf7910a25cad74f5a9c589/revisions
primereact/components/lib/dropdown/Dropdown.js
+ if (event.is_composing === false) {
+ onEnterKey(event);
+ }
Reference
Contributor guide
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
Inspect primereact/components/lib/dropdown/Dropdown.js and use the provided Remix StackBlitz reproducer to trace how Enter is handled during IME composition. Compare it with the Vite reproducer and verify that confirming the Japanese conversion leaves the Dropdown open without breaking ordinary Enter behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, vite
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100