Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): handle IME input correctly to prevent accidental deletion of characters #12339

Closed
wants to merge 1 commit into from

Conversation

khotcholava
Copy link
Contributor

fix(core): handle IME input correctly to prevent accidental deletion of characters

closes #12232

Description

  • Added handling for compositionstart and compositionend events to properly manage IME input (e.g., Chinese, Japanese).
  • Introduced isComposing flag to bypass autocomplete logic during IME composition.
  • Updated inputText synchronization after IME input ends to ensure it matches the finalized value.
  • Prevented unwanted modifications of input value when using IME, addressing the issue where typing and deleting partially composed characters could remove the last English character.

…of characters

closes [#12232](#12232)

## Description
- Added handling for `compositionstart` and `compositionend` events to properly manage IME input (e.g., Chinese, Japanese).
- Introduced `isComposing` flag to bypass autocomplete logic during IME composition.
- Updated `inputText` synchronization after IME input ends to ensure it matches the finalized value.
- Prevented unwanted modifications of input value when using IME, addressing the issue where typing and deleting partially composed characters could remove the last English character.
@khotcholava khotcholava self-assigned this Aug 30, 2024
Copy link

netlify bot commented Aug 30, 2024

Deploy Preview for fundamental-ngx ready!

Name Link
🔨 Latest commit 49d26e9
🔍 Latest deploy log https://app.netlify.com/sites/fundamental-ngx/deploys/66d1c42eab23f7000811f789
😎 Deploy Preview https://deploy-preview-12339--fundamental-ngx.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@khotcholava khotcholava deleted the fix(core)-combobox-search-term-ime-issue branch August 30, 2024 13:11
@khotcholava khotcholava restored the fix(core)-combobox-search-term-ime-issue branch August 30, 2024 13:12
Copy link

Visit the preview URL for this PR (updated for commit 49d26e9):

https://fundamental-ngx-gh--pr12339-fix-core-combobox-s-jjv211s8.web.app

(expires Mon, 02 Sep 2024 13:12:25 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 41b993ee8e451bd7c6770b342ce142dc886eacff

@khotcholava khotcholava deleted the fix(core)-combobox-search-term-ime-issue branch August 30, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue In Combobox Field Delete Search Term With Chinese Characters
2 participants