-
Notifications
You must be signed in to change notification settings - Fork 418
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
Autoclose #72
Comments
I modified the dist/index.js so that when the data is entered into the model (ie: on the final view), the popup closes (using Jquery): Here's my diff:
|
+1 to that. |
Alternatively to: $('.dropdown-toggle').parent().removeClass('open'); If you don't want to point to a specific element, you can replace it with: setTimeout(function(){ scope.$emit('$destroy'); }, 1); Or (only when used with input fields): $(':focus').blur(); |
I think this should be optional, like a flag on the date-picker directive like "<... auto-close='true' />" |
I agree with @eralha. In mine opinion that's a big +1 Any plans for implementing that |
I can implement that, i just need to give it a little more thinking, because you can manage the visibility of the datepicker with so many things for exp: ng-class, ng-visible etc... i need to see if the implementation doesn´t clash with any functionality |
Yes, please add 👍 |
Closed, you can set the attribute auto-close="true" to use this feature. |
Autoclose of the datepicker when selecting a value on the min-view would be very appreciated 👍
The text was updated successfully, but these errors were encountered: