当前位置:网站首页>Input input box cursor automatically jumps to the last bug after the previous input
Input input box cursor automatically jumps to the last bug after the previous input
2022-08-01 03:18:00 【Standing on the 28th floor listening to the wind】
Component library: tea-component
Technical framework: umi, react, react-hook-form
Today's bug, the cursor of the input box automatically jumps to the back after inputting at the front
Before typing

After input

When the triggering event is different, the other conditions are the same
// onChange will cause this bug {handleChangeCache(v, 'name', true);}}maxLength={30}disabled={cacheEventInfo?.isDistabled}autoComplete="off"placeholder={intl('name')}/>// onInput will not have this bug {handleChangeCache((v?.target as any)?.value, 'name', true);}}maxLength={30}disabled={cacheEventInfo?.isDistabled}autoComplete="off"placeholder={intl('name')}/>The reason for this bug is guessed that the tea-component component encapsulates the onChange component once, but does not encapsulate the onInput component.
The specific reasons are welcome to give pointers

Solution: Change the onChange event to onInput
边栏推荐
- How to get started with YOLO?How to implement your own training set?
- 一个service层需要调用另两个service层获取数据,并组装成最后的数据,数据都是list,缓存如何设计?
- 785. Quick Sort
- Flink 部署和提交job
- The device node structure is converted into a platform_device structure
- 情人节浪漫3D照片墙【附源码】
- Guys, MySQL cdc source recycles replication slave and r in incremental process
- 软件测试周刊(第82期):其实所有纠结做选择的人心里早就有了答案,咨询只是想得到内心所倾向的选择。
- 树莓派 的 arm 版的 gcc 安装 和环境变量的配置
- Summary of mobile page optimization in seconds
猜你喜欢

IDEA无法识别module(module右下角没有蓝色小方块)

button去除黑框

opencv 缩小放大用哪种插值更好??

二舅

By CSDN, torn

Raspberry pie arm version of GCC installed configuration and environment variables

Introduction to machine learning how to?
![[Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]](/img/65/b84443b98c28d2728e9ae44b1294fb.jpg)
[Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]

HCIP (14)

项目越写越大,我是这样做拆分的
随机推荐
软件测试周刊(第82期):其实所有纠结做选择的人心里早就有了答案,咨询只是想得到内心所倾向的选择。
指定set 'execution.savepoint.path'后,重启flinksql报这个错是啥
JS new fun(); 类与实例 JS基于对象语言 只能通过书写构造函数充当类
HCIP(15)
HCIP (14)
HCIP(14)
MYSQL transactions
预言机简介
彻底关闭Chrome浏览器更新及右上角的更新提示
opencv 缩小放大用哪种插值更好??
Flutter “Hello world“ 程代码
软件测试基础理论知识—用例篇
每周小结(*67):为什么不敢发表观点
对无限debugger的一种处理方式
[SemiDrive source code analysis] series article link summary (full)
开源项目站点必备&交流区功能
[Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]
Weekly Summary (*67): Why not dare to express an opinion
pdb drug comprehensive database
The fledgling Xiao Li's 113th blog project notes: Wisdom cloud smart flower watering device combat (2) - basic Demo implementation