Add clearInput flag to clearOptions()