Do not clear input if value is not valid