Skip to content

script: Update placeholder-shown state during IME composition events#40082

Merged
jdm merged 2 commits intoservo:mainfrom
notJoon:update-placeholder-shown-state
Oct 23, 2025
Merged

script: Update placeholder-shown state during IME composition events#40082
jdm merged 2 commits intoservo:mainfrom
notJoon:update-placeholder-shown-state

Conversation

@notJoon
Copy link
Copy Markdown
Contributor

@notJoon notJoon commented Oct 22, 2025

When users input Unicode characters (such as Korean) in input fields, there was an issue where the placeholder text did not disappear and overlapped with the entered text. With regular alphabetic input, this placeholder disappears normally.

To fix this, adds update_placeholder_shown_state() calls to the IME composition event handlers in HTMLInputElement, ensuring the placeholder is properly hidden when IME input begins and remains hidden during composition.

Before fix
스크린샷 2025-10-22 오후 11 32 21

After fix
스크린샷 2025-10-23 오전 12 27 26

Testing: Manually tested on MacOS and confirmed the overlapping text issue no longer occurs

@notJoon notJoon requested a review from gterzian as a code owner October 22, 2025 15:29
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 22, 2025
@mrobinson
Copy link
Copy Markdown
Member

@notJoon Thanks for the fix! Please make sure to sign you commit with git commit --amend -s and then we can land this.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 22, 2025
@notJoon notJoon force-pushed the update-placeholder-shown-state branch from 6e544c4 to 260c827 Compare October 22, 2025 22:50
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 22, 2025
@notJoon
Copy link
Copy Markdown
Contributor Author

notJoon commented Oct 22, 2025

@mrobinson Thank you for the review. I've added the sign to the commit message.

@jdm jdm enabled auto-merge October 22, 2025 23:31
@jdm jdm added this pull request to the merge queue Oct 23, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 23, 2025
Merged via the queue into servo:main with commit a1598e8 Oct 23, 2025
29 of 30 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 23, 2025
@notJoon notJoon deleted the update-placeholder-shown-state branch October 23, 2025 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants