Skip to content

Commit 0aa901b

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/bootstrap-datepicker.js

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

0 commit comments

Comments
 (0)