added onchange event triggering when input is cleared #999