Add clearInput flag to clearOptions()

Only clear user input when clearInput is true or undefined