naive-ui icon indicating copy to clipboard operation
naive-ui copied to clipboard

数字控件双击后数字会一直增加,无法停止

Open fanmore opened this issue 2 years ago • 5 comments

TuSimple/naive-ui version (版本)

2.32.2-beta.0

Vue version (Vue 版本)

3.2.37

Browser and its version (浏览器及其版本)

chrome

System and its version (系统及其版本)

windows10

Node version (Node 版本)

Reappearance link (重现链接)

https://www.naiveui.com/zh-CN/os-theme/components/input-number

Reappearance steps (重现步骤)

https://s3.bmp.ovh/imgs/2022/08/11/8815a173de34f344.gif

Expected results (期望的结果)

不应该一直增加才对

Actual results (实际的结果)

数字输入 Input Number 双击增加位置,数字会一直增加,无法停止

Remarks (补充说明)

fanmore avatar Aug 11 '22 06:08 fanmore

我在自己的代码里面 2.32.1 也碰到了这个问题,双击减号也会触发。但是在文档上我却复现不出来。感觉像是按住的事件被一直触发了.

ManiaJack avatar Aug 11 '22 09:08 ManiaJack

this might be a duplicate of #3329

OrbisK avatar Aug 11 '22 09:08 OrbisK

can't reproduce it 无法复现 https://user-images.githubusercontent.com/39197136/184137357-de3d0d29-abed-4598-aacf-58a47b424d95.mp4

Sepush avatar Aug 11 '22 12:08 Sepush

can't reproduce it 无法复现 https://user-images.githubusercontent.com/39197136/184137357-de3d0d29-abed-4598-aacf-58a47b424d95.mp4

you have to click pretty fast. https://github.com/tusen-ai/naive-ui/issues/3329#issuecomment-1198350120

does only happen in 3/10 cases

OrbisK avatar Aug 11 '22 12:08 OrbisK

Seem to be a tricky bug. We will try to fix it soon.

07akioni avatar Aug 11 '22 17:08 07akioni

duplicate, track it in https://github.com/tusen-ai/naive-ui/issues/3329

07akioni avatar Aug 12 '22 15:08 07akioni