Fix searchInput caret bug