fix bug of clicking will trigger datapicker refresh