-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
Reducing the number of watches created for the datepicker by implementing one time binding on the datepicker templates. Removing aria-disabled attribute as the ngAria module will add that to the button with ng-disabled. Closes #3443
- Loading branch information
There are no files selected for viewing
5 comments
on commit 2a2e5de
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a date picker calendar that I use to allow users to select multiple dates using custom classes to style the selected dates. This change breaks that because the custom classes need to be updated as the page runs.
I have created a simple demo of this on Plunker using ui-bootstrap version 0.13.0. If I use version 0.13.1 or greater, the custom classes don't update. Is there anyway to make this kind of thing work in newer versions of ui-bootstrap?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevinphelps, take a look at #4692.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got this fixed using a custom template-url. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevinphelps, good deal, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just $scope.$watch
for value changes and broadcast a calendar redraw with help of this guide: https://gist.github.com/cgmartin/3daa01f910601ced9cd3
::dt.customClass seems like a breaking change to me.