Skip to content

Commit 8819120

Browse files
committed
fix(mobile): skip stale chip tokens before measuring their bounds
1 parent c81e5f7 commit 8819120

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/mobile/modules/t3-composer-editor/android/src/main/java/expo/modules/t3composereditor/T3ComposerEditorView.kt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ class T3ComposerEditorView(context: Context, appContext: AppContext) : ExpoView(
132132
tokens.firstOrNull {
133133
(it.type == "context" || it.type == "mention" || it.type == "skill") &&
134134
offset in it.start..it.end &&
135+
it.end <= editor.length() &&
135136
chipContains(it, event.x, event.y)
136137
}
137138
?: return false

0 commit comments

Comments
 (0)