If the office of the county clerk becomes vacant due to death, resignation or removal, the duties of the county clerk shall be temporarily discharged by the chief deputy, or deputy designated as temporary successor by the county clerk in writing, until a successor county clerk is elected or appointed and qualified according to law.