layui / layui/layui

[form] 单选框校验问题

Open
#2,957 0 comments 0 reactions 0 assignees View on GitHub

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>
截图补充
Image
浏览器

Edge

演示地址

No response

友好承诺
  • 我承诺将本着相互尊重、理解和友善的态度进行交流,共同维护 Layui 良好的社区氛围。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.