bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

datepicker-mode and scope

Open robjames opened this issue 12 years ago • 4 comments

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.

robjames avatar Sep 04 '14 11:09 robjames

https://github.com/angular-ui/bootstrap#need-help

rvanbaalen avatar May 30 '15 21:05 rvanbaalen

@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.

robjames avatar May 30 '15 23:05 robjames

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.

rvanbaalen avatar Jun 01 '15 00:06 rvanbaalen

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.

robjames avatar Jun 01 '15 06:06 robjames