moved setting of inputvalue to aftertextchanged