Crash when overwriting selected text in <TextInput/> with Japanese IME
维护者通常 2 天内回复
@protikbiswas100 已经在做这个了。
开始于 2026年5月12日。
评估
这个 Issue 还没有评估数据。
描述
Problem Description
Selecting text that includes Japanese characters displayed in , turning on the Japanese IME, and typing any character causes an immediate crash.
Steps To Reproduce
- Type into the TextInput
- Select text that includes Japanese characters
- Turn on Japanese IME
- Type a single character
- The app crashes with the following log:
INFO Connection established to app='TextInputCrash_1.0.0.0_x64__2f65sjwpnhfvw' on device='TowerPC'.
I tried both Copilot Keyboard and Microsoft IME, but both showed the same behavior.
| Selected text | IME | Result |
|---|---|---|
| Japanese text | IME on | Crash |
| Japanese text | IME off | Works |
| English text | IME on | Works |
| English text | IME off | Works |
https://github.com/user-attachments/assets/d22f1f6b-9306-4216-bf64-962e2b65b5cc
Expected Results
No response
CLI version
20.0.0
Environment
> npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: Windows 11 10.0.26200
CPU: (12) x64 Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz
Memory: 12.86 GB / 31.85 GB
Binaries:
Node:
version: 24.14.1
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.22
path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm:
version: 11.11.0
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
Versions:
- 10.0.22621.0
- 10.0.26100.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.14.37216.2 (Visual Studio Community 2022)
Languages:
Java:
version: 21.0.10
path: C:\Program Files\Microsoft\jdk-21.0.10.7-hotspot\bin\javac.EXE
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.1
wanted: 19.1.1
react-native:
installed: 0.82.0
wanted: 0.82.0
react-native-windows:
installed: 0.82.5
wanted: ^0.82.5
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
info React Native v0.85.3 is now available (your project is running on v0.82.0).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.85.3
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.82.0&to=0.85.3
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".
Community Modules
"dependencies": {
"@react-native/new-app-screen": "0.82.0",
"react": "19.1.1",
"react-native": "0.82.0",
"react-native-safe-area-context": "^5.5.2",
"react-native-windows": "^0.82.5"
},
Target React Native Architecture
New Architecture (WinAppSDK) Only
Target Platform Version
10.0.22621
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
Minimal reproducible example:
import React, { useState } from 'react';
import { TextInput, View } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
const SEED = '日本語テキスト';
export default function App() {
const [text, setText] = useState(SEED);
return (
<SafeAreaView>
<View>
<TextInput
value={text}
onChangeText={t => {
setText(t);
}}
autoCorrect={false}
/>
</View>
</SafeAreaView>
);
}
- 主要语言
- C++
- 星标
- 17.4k
- 派生
- 1.2k
- 平均合并
- 2 天 23 小时
- 30 天内合并 PR
- 16
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/react-native-windows 的其他 Issue
-
Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 82/100
microsoft/react-native-windows#16340 ·
维护者通常 2 天内回复
-
bug Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/react-native-windows#16321 · 1 条评论 ·
维护者通常 2 天内回复
-
bug Needs: Triage :mag:
难度 3/5 1-2 天 新手友好度 48/100
microsoft/react-native-windows#16479 ·
维护者通常 2 天内回复
-
Needs: Triage :mag:
难度 5/5 一周以上 新手友好度 30/100
microsoft/react-native-windows#16442 · 2 条评论 ·
维护者通常 2 天内回复
-
Fabric: activating the window doesn't announce the window or the focused control to a screen reader未关闭Needs: Triage :mag:
难度 4/5 3-5 天 新手友好度 48/100
microsoft/react-native-windows#16435 ·
维护者通常 2 天内回复
查看 microsoft/react-native-windows 的全部 Issue
相似的 Issue
-
bug question
难度 1/5 1 小时以内 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 79/100
-
test(python): the CPU-bound tool overlap check compares two wall-clock samples and fails under load未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
CachyOS/New-Cli-Installer#50 ·
-
难度 1/5 1-3 小时 新手友好度 90/100
Qiskit/qiskit-aer#2482 ·
维护者通常 1 天内回复