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

[input] 加上 type="number" 报错 #2796

Closed
CrossLee opened this issue Sep 8, 2023 · 4 comments · May be fixed by #2836
Closed

[input] 加上 type="number" 报错 #2796

CrossLee opened this issue Sep 8, 2023 · 4 comments · May be fixed by #2836
Assignees
Labels
to be published fixed, not be published

Comments

@CrossLee
Copy link

CrossLee commented Sep 8, 2023

tdesign-vue 版本

1.3.0

重现链接

https://codesandbox.io/s/l52527?file=/src/demo.vue

重现步骤

打开重现链接


<t-input Label="价格:" suffix="元" />

中加

type="number"

image

然后在输入框输入数字,检查控制台

image

期望结果

不报错

实际结果

控制台报错

InvalidStateError
Failed to set the'selectionEnd' property on'HTMLInputElement': The input element's type ('number')does not support selection.

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

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

@betavs betavs mentioned this issue Oct 7, 2023
16 tasks
@chaishi
Copy link
Collaborator

chaishi commented Oct 11, 2023

为何不使用 InputNumber 呢? 专门输入数字的

@uyarn uyarn added the 💭 discussion we are discussing label Oct 12, 2023
@uyarn uyarn added to be published fixed, not be published and removed 💭 discussion we are discussing labels Nov 23, 2023
@uyarn
Copy link
Collaborator

uyarn commented Nov 23, 2023

fixed in 1.8.0

@uyarn uyarn closed this as completed Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants