LaunchCodeLiftoffProjects / LaunchCodeLiftoffProjects/Collab-Blog

Validation for image upload disappears when fill the body input

未关闭
#67 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
8
派生
20
PR 合并指标
30 天内没有已合并 PR

描述

Describe the bug
When creating a new blog the validators for required fields appear at the bottom of the page. They should disappear when the required fields are filled out. However, when you fill in the body input the validator for the image upload disappears.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Add new blog'
  2. Fill in header subheader author and body
  3. Scroll down to just above the submit buttons
  4. See that the validator for the image has been hidden or disappeared even though no image was uploaded

Expected behavior
Image validation should disappear after image was uploaded.

Screenshots
Screen Shot 2022-05-06 at 6 34 04 PM
Screen Shot 2022-05-06 at 6 34 12 PM

Desktop (please complete the following information):

  • OS: [macOS]
  • Browser [e.g. chrome,]
  • Version [Version 101.0.4951.54 ]

Additional context
Add any other context about the problem here.
This was noticed when testing the pull request that fixed "blog not submitting when tag field empty". This was I think an issue before that bug fix tho because no code for image upload was touched from viewing the edits

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从“Add new blog”表单开始,在不上传图片的情况下填写 header、subheader、作者和正文,以复现该问题。跟踪表单验证行为,并确认图片验证器会一直显示,直到上传图片为止,同时包括现有的必填字段验证流程。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend, web-dev
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。