Skip to content

Commit a0c465f

Browse files
committed
Prevent pasting disabled dates
1 parent 6aaf643 commit a0c465f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/bootstrap-datepicker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,9 @@
792792
}, this));
793793
dates = $.grep(dates, $.proxy(function(date){
794794
return (
795-
!this.dateWithinRange(date) ||
796-
!date
795+
!this.dateWithinRange(date) ||
796+
!date ||
797+
this.dateIsDisabled(date)
797798
);
798799
}, this), true);
799800
this.dates.replace(dates);

0 commit comments

Comments
 (0)