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

When having a date-picker inside a modal, when I select a date the modal closes. #1042

Closed
ypalaniappan opened this issue Nov 15, 2016 · 1 comment

Comments

@ypalaniappan
Copy link

ypalaniappan commented Nov 15, 2016

When having a date-picker inside a modal, when I select a date the modal closes.

Example to reproduce issue:
http://plnkr.co/edit/ATyV4MJ2vvoDgCc9W5Wn?p=preview

@PEsteves8
Copy link

PEsteves8 commented Nov 15, 2016

I had this same issue. I tried to tell @pkozlowski-opensource on @angular gitter channel, but he's probably not available at the moment.

I think it's because on one of the last updates, a click event preventDefault was removed to allow dropdowns to properly close on modals. I'm not sure though.

Anyway, what happens is that clicking the datePicker is equivalent to clicking the backdrop. A quick workaround for now is to use the option { backdrop: 'static' } which will always prevent the modal from closing on datePicker click, although with the caveat that it also stops users from closing the modal by clicking outside of it.

I assume it's the same problem as #1040 , which seems to have solved the issue with typeahead.

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

Successfully merging a pull request may close this issue.

3 participants