Catch DatePickerRange clearing


I’m looking for a way to catch in my dash callback when the clear button is clicked.

Any idea ?

You can probably indirectly check for this condition by having a callback that triggers on start_date and end_date. If both values are set to their place-holder values (pass the start_date_placeholder_text and end_date_placeholder_text values via State) , you could assume the clear button was checked. Unfortunately, I’m not able to verify this with code at the moment. You may need to do some error checking to handle conditions when the app loads (utilize dash.callback_context for this).