Open lache-melvin opened 1 month ago
Prescription (backdate) is date only, so you shouldn't be able to select time 👀 btw Encounter enrolment modal also shows the same "Select date & date" with disabled time selection 😅
Changing the DateTimePicker
to a BaseDatePickerInput
for both the prescription and CreateEncounterModal fixes gives this:
Though what I think would be better is for the DateTimePickerInput
to be adjusted.
If that used the showTime
prop to choose whether to show the DateTimePicker
or the DatePicker
then this would solve the issue more neatly. and give the mobile date picker view:
What went wrong? 😲
https://github.com/user-attachments/assets/b7e0342d-ca8a-4264-a182-dc1a52ede8c0
Expected behaviour 🤔
If I can't enter a time, don't offer me a time tab 🥲
How to Reproduce 🔨
Steps to reproduce the behaviour:
Your environment 🌱