36
Views
3
Comments
Solved
Time picker is not clearing on IOS

IOS version 15.1

Behavior is the same in a native build (IOS) as well as PWA.

I have noticed that when you select a time and then click 'reset' on a time picker (input of type time) in IOS, reset does not do anything. Expectations are that it should clear the time.

Has anyone found a way to get around this?

I'm using multiple input fields of type time. I'd be loathed to have to set a button for each field to clear the time. 

TIA! 

UserImage.jpg
Janet D
Solution

I have realized that I was confused about the functionality of the reset button. Reset doesn't mean clear, it just means set it to the last "saved value" if you have scrolled to another value. 

It seems the only way to clear the value is to manually clear it on button click or something similar.

2021-05-18 02-27-17
Manish Gupta
Champion

Dear Janet 

What logic have you implemented on the Reset Button? One approach that you can follow is - 

  1. Set Time in the StartTime Properties
  2. Click on Reset set the Variable = StartTime
  3. It will be set to the Default time


In case the solution seems your irrelevant please share more details about the challenge you are facing. 

 

UserImage.jpg
Janet D

Hey Manish,

I have not implemented any action on the reset button. It's a standard button which shows up on IOS when the input widget is clicked on.

I have attached an image for clarity.

Thanks, 

Janet

UserImage.jpg
Janet D
Solution

I have realized that I was confused about the functionality of the reset button. Reset doesn't mean clear, it just means set it to the last "saved value" if you have scrolled to another value. 

It seems the only way to clear the value is to manually clear it on button click or something similar.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.