fix bug when user click date field right after content editing