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

在单元格中存在受控的输入框时,无法输入中文 #441

Open
LifeIsShit774 opened this issue Jun 25, 2023 · 1 comment
Open

Comments

@LifeIsShit774
Copy link

Versions

package version
react 17.0.1
rsuite-table 5.10.6

What is the expected behavior?

使用受控的input实时修改data

What is the current behavior?

输入一个字母后,直接空格,不会键入中文,输入第二个字母,不会和第一个连起来成为拼音,而是把第二个字母作为拼音的开始,后续多个字母也是一样

What are the steps to reproduce?

在单元格中使用受控输入框,实时修改data数据,期望输入中文,官网Custom Cell示例就可以复现此问题

Any additional comments? (optional)

暂无

@simonguo
Copy link
Member

当表格的 data 更新会使得整个表格重新计算渲染,你可以尝试将 input 输入的值单独存储在一个 state 中,在 input 的 value 上直接设置 state 里的值。

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

No branches or pull requests

2 participants