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

[stepper] 设置min/max值后,不能删除数值重新输入 #2490

Open
net205 opened this issue Dec 13, 2023 · 2 comments
Open

[stepper] 设置min/max值后,不能删除数值重新输入 #2490

net205 opened this issue Dec 13, 2023 · 2 comments
Labels
question This is a question, not a bug

Comments

@net205
Copy link

net205 commented Dec 13, 2023

tdesign-miniprogram 版本

1.1.14

重现链接

No response

重现步骤

1、如下代码,给<t-stepper组件设置了min/max值为10/9999,步长step为2。
默认值为10的时候,然后定位到输入框,想用退格键删除0,输入2(即结果值为12)时,不能删除,始终为最小值10

2、后面change改为blur事件,输入值可以任意编辑,但左右的减和加按钮无法点击

<t-stepper value="{{buyNum}}" step="{{buyStep}}" min="{{limitMinCount}}" max="{{limitMaxCount}}" theme="filled" bind:change="handleBuyNumChange"/>

handleBuyNumChange(e) { const { value } = e.detail; this.setData({ buyNum: value, }); }

期望结果

期望输入框可以任意编辑或清除数值,结束后才校验输入值的正确性。

实际结果

输入框无法删除全部或部分值重新输入,始终锁定最小值

基础库版本

No response

补充说明

No response

Copy link
Contributor

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

@betavs
Copy link
Collaborator

betavs commented Jan 15, 2024

目前最新版本无此问题,请更新版本

@betavs betavs added the question This is a question, not a bug label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants