Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

datePickerPopup with custom datepicker-template-url. focus() not working. #6215

Closed
Rouche opened this issue Aug 30, 2016 · 1 comment
Closed

Comments

@Rouche
Copy link
Contributor

Rouche commented Aug 30, 2016

Bug description:

Was working in 1.3.3 (If you change the script link in the plnkr you cann see)
I dont know if this is related to #5998 but i got bug since 2.0.0

Link to minimally-working plunker that reproduces the issue:

Use the date popup called "Test Datepicker alone" it will pop the one using uib template and the one with a custom template. (Both templates are completelly identical)
http://plnkr.co/edit/zCGXtvY87BTa2eoQxcHq?p=preview

You will see the "Cannot read property '0' of undefined" line 1725.

Should this go in a setTimeout() if the element is not there?
What boggles me completelly is... both templates are identical and put in cache.

Using templateCache directly did not help either.

Version of Angular, UIBS, and Bootstrap

Angular: 1.5.8

UIBS: 2.1.3

Bootstrap: 3.3.7

jQuery: 3.1.0

@Rouche Rouche closed this as completed Aug 30, 2016
@Rouche
Copy link
Contributor Author

Rouche commented Aug 30, 2016

ok, i finally found it. the directives daypicker/monthpicker/yearpicker are now on attribute.
Same thing for timepicker.

Before it was element.

Could not find information about it.

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

No branches or pull requests

1 participant