Fix clear button click handler passing wrong argument

The clear button click handler was passing the event object from the
parent scope instead of the correct one.