Fix datepicker error with blur and keyup on forms