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

Prevent CfW-mobile crash when selecting some text in SelectionContainer #1551

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

eymar
Copy link
Member

@eymar eymar commented Sep 10, 2024

Currently, the web app would crash in mobile browsers after selecting some text in SelectionContainer.
This is rather a workaround: we simply do nothing. But it's an acceptable one, since not all android and ios versions support selectionMagnifier anyway.
TODO: properly implement Modifier.selectionMagnifier https://youtrack.jetbrains.com/issue/CMP-6645

Testing

  • Added a simple unit test
  • tested in Google Chrome on my android device

Release Notes

Fixes - Web

  • Prevent a crash on mobile web when selecting some text in SelectionContainer

@eymar eymar requested a review from Schahen September 10, 2024 09:56
@eymar eymar changed the title Fix CfW-mobile crash when selecting some text in SelectionContainer Prevent CfW-mobile crash when selecting some text in SelectionContainer Sep 10, 2024
@eymar
Copy link
Member Author

eymar commented Sep 10, 2024

cc: @terrakok After this change, the selection will not crash the app.

@eymar eymar merged commit d8498b6 into jb-main Sep 10, 2024
6 checks passed
@eymar eymar deleted the ok/cfw_prevent_selection_magnifier_crash branch September 10, 2024 13:49
eymar added a commit that referenced this pull request Sep 10, 2024
…er (#1551)

Currently, the web app would crash in mobile browsers after selecting
some text in SelectionContainer.
This is rather a workaround: we simply do nothing. But it's an
acceptable one, since not all android and ios versions support
selectionMagnifier anyway.
TODO: properly implement Modifier.selectionMagnifier
https://youtrack.jetbrains.com/issue/CMP-6645


## Testing
- Added a simple unit test
- tested in Google Chrome on my android device

## Release Notes
### Fixes - Web
- Prevent a crash on mobile web when selecting some text in
SelectionContainer
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