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

[InputNumber] 设置min为0或max为0时仍可通过按钮减少至-1或增加至1 #1709

Closed
HHaoWang opened this issue Sep 20, 2022 · 3 comments
Assignees
Labels
to be published to be published

Comments

@HHaoWang
Copy link
Contributor

tdesign-vue-next 版本

0.22.0

重现链接

https://stackblitz.com/edit/angular-n2ugyz-5sgxjk?file=src/demo.vue

重现步骤

给t-input-number设置min为0,则当绑定的值为0的时候仍然可以点击减少按钮从而变为-1
给t-input-number设置max为0,则当绑定的值为0的时候仍然可以点击减少按钮从而变为1

经过简单测试,当min设置为0之外的数字时,例如3或-2,则当绑定值为3或-2时,减少按钮会被禁用,但如果min设置为0则当绑定值为0时仍然可以继续点击减少按钮

此外,之前的issue中出现的问题经测试仍然存在:#1291

期望结果

给t-input-number设置min为0,当绑定的值为0的时候减少按钮被禁用
给t-input-number设置max为0,当绑定的值为0的时候增加按钮被禁用

实际结果

给t-input-number设置min为0,则当绑定的值为0的时候仍然可以点击减少按钮从而变为-1
给t-input-number设置max为0,则当绑定的值为0的时候仍然可以点击减少按钮从而变为1

框架版本

Vue(3.2.37)

浏览器版本

Edge(105.0.1343.42)

系统版本

Windows10

Node版本

16.15.1

补充说明

No response

@github-actions
Copy link
Contributor

👋 @HHaoWang,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link
Contributor

♥️ 有劳 @LeeJim @youuss 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @HHaoWang

@uyarn uyarn added the to be published to be published label Sep 20, 2022
@uyarn
Copy link
Collaborator

uyarn commented Sep 21, 2022

fixed 0.22.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published to be published
Projects
None yet
Development

No branches or pull requests

3 participants