francheska-vicente / cssweng

0 stars 1 forks source link

When chosen time text field is blank, Javascript error occurs #127

Closed sophia-vista closed 3 years ago

sophia-vista commented 3 years ago

Summary:

As the Chosen Time text field in Main Booking Screen and Room Management Screen allows inputs, it is possible to delete the text inside. This results in a Javascript error, causing the app to malfunction.

Steps to Reproduce:

  1. Go to Room Management or any Main Booking Screen
  2. Delete text in Chosen Time field

Visual Proof:

image

Expected Results:

Actual Results:

Additional Information
Platform V8 engine (Google)
Operating System Windows 10
JanjanC commented 3 years ago

Fixed

sophia-vista commented 3 years ago

image 0 in the hour field still causes a Javascript error

JanjanC commented 3 years ago

I can't seem to find a way to prevent a time of 00:00 from being entered. Instead, the keyboard input is restricted and the user is required to use the time picker option to choose a time. image