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

datePicker popup not working in modal #2307

Closed
akarelas opened this issue Jun 9, 2014 · 4 comments
Closed

datePicker popup not working in modal #2307

akarelas opened this issue Jun 9, 2014 · 4 comments

Comments

@akarelas
Copy link

akarelas commented Jun 9, 2014

I took the exact HTML & JS code from the examples and pasted it in an ordinary view of my app, and it worked.

However when I pasted it inside a ui-bootstrap modal, then the datePicker would open when clicked, but could not re-open after it was closed once.

@pkozlowski-opensource
Copy link
Member

@akarelas modal is creating a new scope so you need to make sure that the isOpen property is binding to the right scope. Provide a minimal reproduce scenario using http://plnkr.co/ is you need more help.

@avukonke
Copy link

set "is-open" attribute to "$parent.*" (where * star is equal to the flag where you set is-open property). Then define the "is-open" flag in the controller you specified as the ModalInstance Controller. http://stackoverflow.com/questions/20212813/ui-bootstrap-datepicker-is-open-not-working-in-modal

@akarelas
Copy link
Author

Thanks

@SandeepKulkarniag
Copy link

Hi, I'm suffering from the same issue, but with bootstrap datetimepicker. Could either of you all let me know as to what is that I'm missing. I asked this question on SO. Please have a look.
http://stackoverflow.com/questions/38100111/bootstrap-datetimepicker-showing-inconsistency-while-used-in-bootstrap-modal

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

No branches or pull requests

4 participants