Clear button on click event

Hello, how could I handle the event of pressing the clear button in a DatePicker?

I don’t think that there’s a listener you can attach to that, it’s internal to the component.

What are you trying to accomplish?

I have two date pickers that are used to filter in a range (filter elements in a grid). If you delete the date in one of them, it doesn’t make sense to keep the other one and you would need to have both components clean.

I have an idea with the valueChangeListener I just need to test it if it works.