appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.74k stars 3.76k forks source link

[Bug]: Required DatePicker Field in JSON Form Is Marked With Red on Form Load #36970

Open ame-appsmith opened 1 month ago

ame-appsmith commented 1 month ago

Is there an existing issue for this?

Description

When having a DatePicker field in a JSON Form with the Required property enabled, the red border is shown on page load, before the user gets to interact with the form. For other fields such as text inputs, the red border shows up only after the user interacts with the field and leaves it empty.

image

Steps To Reproduce

  1. Create a JSON Form and configure one of the empty fields to be of type DatePicker.
  2. Leave it empty by default and refresh the page (or place the JSON Form inside a modal and open the modal on button click).
  3. Note that the DatePicker field has a red border, whereas other required text input fields do not show the red border before the user interacts with them.

Ticket

Public Sample App

No response

Environment

Production

Severity

Low (Cosmetic UI issues)

Issue video log

No response

Version

v1.47

Niharika0104 commented 1 month ago

Can I work on this issue?@ame-appsmith

rahulbarwal commented 1 month ago

@Niharika0104 Sure go ahead.