datepicker-mode and scope
Because datepicker-mode (when being set via an attribute) is set to the scope, not the isolate scope of the datepicker itself, when you have multiple date pickers on the same page they will all change to the last set value.
Worse, when changing modes by selecting dates, they all change simultaneously.
To combat this i have had to create a separate directive that wraps the datepicker in a new isolate scope.
Note: this doesn't happen when you don't set a datepicker-mode. In this case they work as expected and behave as individual datepickers.
https://github.com/angular-ui/bootstrap#need-help
@rvanbaalen yeah, that doesn't help. I was highlighting more of a bug, and solution, than asking for help. You will find on SO people with similar issues.
Feel free to re-open and provide a plunkr reproducing this issue if it is still an issue. I'm currently triaging 400+ open issues to see which are outdated, which are invalid and which can be closed and I'm trying to give each individual issue all the attention it deserves. However sometimes issues like this one seem to be a request for help while instead they are actually bugs.
If you think you found a bug, please read this and provide as much info as possible for us to reproduce it. That includes adding a plunkr.
Fair enough - thank you.
On 1 Jun 2015, at 01:31, Robin van Baalen [email protected] wrote:
Feel free to re-open and provide a plunkr reproducing this issue if it is still an issue. I'm currently triaging 400+ open issues to see which are outdated, which are invalid and which can be closed and I'm trying to give each individual issue all the attention it deserves. However sometimes issues like this one seem to be a request for help while instead they are actually bugs.
If you think you found a bug, please read this and provide as much info as possible for us to reproduce it. That includes a plunkr.
— Reply to this email directly or view it on GitHub.