[form] 单选框校验问题
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 30.6k
- Forks
- 7.4k
- Avg merge
- 7m
- Merged PRs (30d)
- 1
Description
议题条件
- 我确认已查看官方使用文档:https://layui.dev ,但没有找到相关解决方案。
- 我确认已在 Issues 中搜索过类似的问题,但没有找到相关解决方案。
- 我已仔细阅读: 🍀 Layui Issue 贡献指南
议题类型
疑是 BUG
使用版本
v2.9.18
问题描述
只提示,无法滚动到指定位置
业务代码
<div class="layui-input-inline" lay-verify="isApproved">
<input type="radio" name="isApproved" value="1" title="是">
<input type="radio" name="isApproved" value="0" title="否">
</div>
截图补充
浏览器
Edge
演示地址
No response
友好承诺
- 我承诺将本着相互尊重、理解和友善的态度进行交流,共同维护 Layui 良好的社区氛围。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the supplied radio-button markup, custom lay-verify rule, and Edge browser. Then trace Layui’s form validation and scroll handling for radio groups. Done means the validation message appears and the page scrolls to the invalid radio group, with a regression check if a suitable form test exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100