Clear data from date component

Is there any setting for clearing the selection and empty the input? Something similar to the selection of the dropdown and next to the drop icon has an x to clear the selection?

Something like this?

I just ran into this situation yesterday and developed a work around. I put the date picker component and an icon component in a flex container. There is a script on the icon's OnClick event to set the date to None. See script below:

self.getSibling("DateTimeInput").props.value = None

Hopefully that helps!

2 Likes