-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[iOS] Clicking just before a Special Character in a TextField causes a Crash #4388
[iOS] Clicking just before a Special Character in a TextField causes a Crash #4388
Comments
Hi, thanks for the report, I'll have a look |
## Proposed Changes Fix OutOfBounds logical error leading to crash. Refactor testing of caret placement to be more apparent. ## Testing Test: CupertinoTextFieldDelegateTest.determineCursorDesiredOffset_tap_before_punctuation ## Issues Fixed Fixes: JetBrains/compose-multiplatform#4388 ## Note This PR fixes the crash, the behavior is still incorrect. Consult with code owner @mazunin-v-jb.
## Proposed Changes Fix OutOfBounds logical error leading to crash. Refactor testing of caret placement to be more apparent. ## Testing Test: CupertinoTextFieldDelegateTest.determineCursorDesiredOffset_tap_before_punctuation ## Issues Fixed Fixes: JetBrains/compose-multiplatform#4388 ## Note This PR fixes the crash, the behavior is still incorrect. Consult with code owner @mazunin-v-jb.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Hello, I have pretty same stack trace but the crash is from AppStore and I can't reproduce it. I saw that it isn't like the crash in this ticket but I will post my stack trace here.
Could you please help me find from where this crash is and how to resolve it ? Regards, |
Describe the bug
On iOS, whenever I'm typing some characters into a TextField, in my case an email address, I noticed that clicking just before any special Character (e.g: the '@' or '.') in the text (email) causes a crash.
Affected platforms
Select one of the platforms below:
Versions
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
TextField
and make it functional (value
,onValueChanged
, etc)Expected behavior
The cursor should appear in the clicked position.
Screen Recording
Screen.Recording.2024-02-28.at.18.26.10.mov
Additional context
The error stack trace is a bit lengthy, but it starts like this:
The text was updated successfully, but these errors were encountered: