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
[Component] [date-picker] el-date-picker使用 type="daterange"时缺少name或id #16802
Comments
找到了问题了,date-picker 中不是 range 的 input 是用 el-input 实现的,而 range 的 input 用的是原生的 input,el-input 在不传入 id 时会自动生成 id,而原生 input 没有该类功能。 |
xuyimingwork
added a commit
to xuyimingwork/element-plus
that referenced
this issue
May 10, 2024
fix time-picker type range input elements without default id value closed element-plus#16802
3 tasks
xuyimingwork
added a commit
to xuyimingwork/element-plus
that referenced
this issue
May 10, 2024
fix time-picker type range input elements without default id value closed element-plus#16802
xuyimingwork
added a commit
to xuyimingwork/element-plus
that referenced
this issue
May 10, 2024
fix time-picker type range input elements without default id value closed element-plus#16802
xuyimingwork
added a commit
to xuyimingwork/element-plus
that referenced
this issue
May 11, 2024
add input id check for time-picker in range adjust non range test cases to right place closed element-plus#16802
xuyimingwork
added a commit
to xuyimingwork/element-plus
that referenced
this issue
May 11, 2024
fix time-picker type range input elements without default id value closed element-plus#16802
xuyimingwork
added a commit
to xuyimingwork/element-plus
that referenced
this issue
May 11, 2024
add input id check for time-picker in range adjust non range test cases to right place closed element-plus#16802
xuyimingwork
added a commit
to xuyimingwork/element-plus
that referenced
this issue
May 13, 2024
fix time-picker type range input elements without default id value closed element-plus#16802
xuyimingwork
added a commit
to xuyimingwork/element-plus
that referenced
this issue
May 13, 2024
add input id check for time-picker in range adjust non range test cases to right place closed element-plus#16802
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Type:
Component
Environment
3.4.26
2.7.2
Chrome 124.0.6367.119 / Windows NT 10
Vite
Reproduction
Related Component
el-date-picker
Reproduction Link
Docs
Steps to reproduce
What is Expected?
不报错
What is actually happening?
浏览器产生问题:
A form field element should have an id or name attribute
A form field element has neither an id nor a name attribute. This might prevent the browser from correctly autofilling the form.
To fix this issue, add a unique id or name attribute to a form field. This is not strictly needed, but still recommended even if you have an autocomplete attribute on the same element.
检查后可以看到是daterange状态下的el-date-picker输入框。
Additional comments
目前可以手动添加name解决,希望可以在组件中有默认name。
The text was updated successfully, but these errors were encountered: