After washing the filter, leave it to dry for at least 24 hours in a place with plenty of airflow, such as near a fan or open window. It's important that the filter is completely dry before it goes back into the machine or you may damage the motor.
Avoid drying the filter in a tumble dryer, microwave or near a naked flame.