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

Datepicker popup doesn't open when clicking on input in v0.11 #2381

Closed
cdietze opened this issue Jun 23, 2014 · 5 comments
Closed

Datepicker popup doesn't open when clicking on input in v0.11 #2381

cdietze opened this issue Jun 23, 2014 · 5 comments

Comments

@cdietze
Copy link

cdietze commented Jun 23, 2014

I updated from version 0.10 to 0.11 and the datepicker popup does not show up when clicking inside the input box.
I looked at the changelog and documentation but could not find a reference to this change.
Was this an intentional change?
What's the most elegant way to get the 0.10 behavior in 0.11?

Demo code that is based on the example from here: http://angular-ui.github.io/bootstrap/#/datepicker. The only thing i changed is the version number of the script file (/bootstrap/ui-bootstrap-tpls-0.1x.0.js). Click inside the input box right underneath "Popup".
Version 0.11 http://plnkr.co/edit/u513mjUPJ9NntYaPKyBx?p=preview
Version 0.10 http://plnkr.co/edit/cOzlM4nsKKw0B8k08KMR?p=preview

@anakreon
Copy link

seconded

@bcronje
Copy link

bcronje commented Jun 26, 2014

Same here, upgraded from 0.10 to 0.11 and it stopped working. Documentation does not say anything.

@clicktravel-martin
Copy link

+1

You can get something like the old behaviour by using the (undocumented) is-open attribute, e.g.

<input datepicker-popup is-open="open" data-ng-click="open = true" ...

but it pollutes your scope, and it doesn't pop up on focus; using ng-focus="open = true" causes "$apply already in progress" errors.

@clicktravel-martin
Copy link

Looks like this was a deliberate modification for accessibility that was not listed as a breaking change in the changelog.

@cdietze
Copy link
Author

cdietze commented Jul 24, 2014

Closing this, because I also think it was deliberate and just missing from the changelog.

@cdietze cdietze closed this as completed Jul 24, 2014
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

4 participants