flowbite-react icon indicating copy to clipboard operation
flowbite-react copied to clipboard

Datepicker required is not working.

Open drokbers opened this issue 1 year ago • 4 comments

  • [x] I have searched the Issues to see if this bug has already been reported
  • [x] I have tested the latest version

Summary

I'm using date picker like the one below but it's never required. Users can submit the form with an empty datepicker, and additionally, when a field is marked as required in an input field, a red asterisk (*) appears above it, but it doesn't appear above the datepicker.

<Datepicker required title="Start date" theme={customTheme} showClearButton showTodayButton={false} className="w-1/2" datepicker-format="dd/mm/yyyy" onSelectedDateChanged={handleDateChange("start_date")} value={formattedStartDate} />

Context

I tried in chrome, brave and safari and all has same bug.

drokbers avatar Dec 21 '23 02:12 drokbers