KEMBAR78
CfW preventDefault the touch events only when Compose consumed an event by eymar · Pull Request #2279 · JetBrains/compose-multiplatform-core · GitHub
Skip to content

Conversation

@eymar
Copy link
Member

@eymar eymar commented Aug 4, 2025

Previously we called event.preventDefault() unconditionally. We need to preventDefault() only when Compose consumed/handled the event. This PR fixes that.

Fixes https://youtrack.jetbrains.com/issue/CMP-8100 (Mobile Chrome shows the keyboard again and again when touch events are always preventDefault())

Testing

This should be tested by QA

Release Notes

Fixes - Web

  • Fixed the issue with software keyboard when it was shown repeatedly in Chrome mobile

@eymar eymar requested a review from Schahen August 4, 2025 09:39
Copy link

@Schahen Schahen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fix a lot of annoying things actually!

@eymar eymar merged commit 4c36619 into jb-main Aug 4, 2025
10 checks passed
@eymar eymar deleted the ok/prevent_default_on_touch_when_needed branch August 4, 2025 10: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.

2 participants