Skip to content

Commit

Permalink
Prevent pasting disabled dates
Browse files Browse the repository at this point in the history
  • Loading branch information
jehhynes committed Jun 25, 2021
1 parent 6aaf643 commit a0c465f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/bootstrap-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,9 @@
}, this));
dates = $.grep(dates, $.proxy(function(date){
return (
!this.dateWithinRange(date) ||
!date
!this.dateWithinRange(date) ||
!date ||
this.dateIsDisabled(date)
);
}, this), true);
this.dates.replace(dates);
Expand Down

0 comments on commit a0c465f

Please sign in to comment.