Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get datepicker fixes from ui.boostrap 0.13.1 #35

Closed
artaommahe opened this issue Aug 2, 2015 · 11 comments
Closed

Get datepicker fixes from ui.boostrap 0.13.1 #35

artaommahe opened this issue Aug 2, 2015 · 11 comments

Comments

@artaommahe
Copy link

Currently datetimepicker does not work with ng-if(as datepicker at 0.13.0), but there was some fixes at this 0.13.1 commit
angular-ui/bootstrap@b72efed

(also there was some more commits for datepicker.js file since 0.13.0 https://github.com/angular-ui/bootstrap/commits/master/src/datepicker/datepicker.js)

It's important fix due to 150+ watchers by every datetime picker on page. Hope you will have time to grab it here :)

@Gillardo
Copy link
Owner

Gillardo commented Aug 2, 2015

I will look at implementing any bugs that are in datetime picker that have
been fixed in date picker popular from angular-ui, but a plunk would be
helpful so I can see the bugs.

Any bugs that exist in date picker and time picker can be fixed if u
upgrade your angular ui js file as my directive just uses that code.
On 2 Aug 2015 2:57 pm, "artaommahe" notifications@github.com wrote:

Currently datetimepicker does not work with ng-if(as datepicker at
0.13.0), but there was some fixes at this 0.13.1 commit
angular-ui/bootstrap@b72efed
angular-ui/bootstrap@b72efed

(also there was some more commits for datepicker.js file since 0.13.0
https://github.com/angular-ui/bootstrap/commits/master/src/datepicker/datepicker.js
)

It's important fix due to 150+ watchers by every datetime picker on page.
Hope you will have time to grab it here :)


Reply to this email directly or view it on GitHub
#35.

@Gillardo
Copy link
Owner

Gillardo commented Aug 2, 2015

What fix is it for 150+ watchers? ?
On 2 Aug 2015 2:57 pm, "artaommahe" notifications@github.com wrote:

Currently datetimepicker does not work with ng-if(as datepicker at
0.13.0), but there was some fixes at this 0.13.1 commit
angular-ui/bootstrap@b72efed
angular-ui/bootstrap@b72efed

(also there was some more commits for datepicker.js file since 0.13.0
https://github.com/angular-ui/bootstrap/commits/master/src/datepicker/datepicker.js
)

It's important fix due to 150+ watchers by every datetime picker on page.
Hope you will have time to grab it here :)


Reply to this email directly or view it on GitHub
#35.

@Gillardo
Copy link
Owner

Gillardo commented Aug 3, 2015

I have had a look at ng-if and i had this before, the problem is that the
timepicker does not then work. If you change the code needed to the demo
and then try the timepicker demo, change the time by a few minutes, and
then press the Now button. You will notice that the input and time picker
are out of sync.

I will have a look if i can apply the ng-if on just the datePicker, instead
of the picker as a whole.

On Sun, Aug 2, 2015 at 6:33 PM, Darren Gillard darren.gillard81@gmail.com
wrote:

What fix is it for 150+ watchers? ?
On 2 Aug 2015 2:57 pm, "artaommahe" notifications@github.com wrote:

Currently datetimepicker does not work with ng-if(as datepicker at
0.13.0), but there was some fixes at this 0.13.1 commit
angular-ui/bootstrap@b72efed
angular-ui/bootstrap@b72efed

(also there was some more commits for datepicker.js file since 0.13.0
https://github.com/angular-ui/bootstrap/commits/master/src/datepicker/datepicker.js
)

It's important fix due to 150+ watchers by every datetime picker on page.
Hope you will have time to grab it here :)


Reply to this email directly or view it on GitHub
#35.

@artaommahe
Copy link
Author

Thx :)
yep, i knew about timepicker bug, tried to fix ng-if by myself, failed and then came here. Also they fixed one more important thing last day(router cross-state transition $digest error with opened calendar popup)

angular-ui/bootstrap#4079 (issue with plunk angular-ui/bootstrap#4076)

@Gillardo
Copy link
Owner

I have now updated the code with some changes from bootstrap-ui. I will upload these shortly.

@Gillardo
Copy link
Owner

I have now put version 1.1.6 up and released. If you could give it a go that would be great. I will close this issue now, but please reopen if something is amiss

@Gillardo
Copy link
Owner

I have just release 1.2.0 which now applies many of the angular-ui bug fixes, including ngIf. The previous version 1.1.6 had some bugs in it, so i had to revert

@artaommahe
Copy link
Author

Yep, 1.2.0 fixed everything, thx ;)

@Gillardo
Copy link
Owner

Wicked! Glad it all works. Will use it in my project now, hopefully
improve performance a bit :)

On Wed, Aug 26, 2015 at 3:05 PM, artaommahe notifications@github.com
wrote:

Yep, 1.2.0 fixed everything, thx ;)


Reply to this email directly or view it on GitHub
#35 (comment)
.

@artaommahe
Copy link
Author

One small bug/typo
ReferenceError: keydown is not defined
on datepicker destroy. It's about this line
element.unbind('keydown', keydown);

@Gillardo
Copy link
Owner

uploading fix now for you

On Wed, Aug 26, 2015 at 3:22 PM, artaommahe notifications@github.com
wrote:

One small bug/typo

ReferenceError: keydown is not defined
on datepicker destroy


Reply to this email directly or view it on GitHub
#35 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants