fix the input view change input type bug.