fix input cursor bug in chrome