Skip to content

有prefix前缀的InputNumber组件会莫名其妙的添加一个mouseup事件,当我鼠标从其他一个地方按下然后移动到这个输入框抬起时这个输入框就会focus #6670

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

Closed
1 task done
Mapotato-Ma opened this issue Jun 19, 2023 · 2 comments

Comments

@Mapotato-Ma
Copy link

Mapotato-Ma commented Jun 19, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.0.0-rc.5

Environment

Vue3,chrome

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/main/components/input-number/demo/prefix.vue

Steps to reproduce

有prefix前缀的InputNumber组件会莫名其妙的添加一个mouseup事件,当我鼠标从其他一个地方按下然后移动到这个输入框抬起时这个输入框就会focus。

只有有前缀的inputNumber组件会出现这个问题。

比如我从一个输入框选中了某个文字,但是我鼠标没有抬起,这时候我鼠标移动到另外一个输入框抬起,第二个输入框就会被focus。

https://next.antdv.com/components/input-number-cn

这是组件官网地址,可以复现我说的问题
image

What is expected?

希望移除这个事件,不知道事件的添加是为了什么考虑

What is actually happening?

事件触发了

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant