-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
Second open of date picker throws an error #450
Comments
I think this can be fixed by adding the following to the UibDatepickerPopupController: $element.on('$destroy', function() {
$scope.$destroy();
}); I have opened an issue with ui-bootstrap |
tried this hack by modifying the actual UibDatepickerPopupController - didn't work. |
Here is a plunkr that shows the fix working. Do you have an example of the fix not working? |
@ckosloski Tried your fix but as @geostima said, it didn't work. When I open the datepicker for the second time, I get these errors in chrome:
|
Thanks @ckosloski .Your solution is working 😄 |
Same problem for me : there is no error thrown, but the second time I try to edit a date field, the input field becomes empty. |
Try using the latest release (0.2.0). It looks like #489 might have fixed the issues. |
Upgrading the plugin, I could not open the date picker at all. It just doesn't work and it doesn't throw any error. However for latest angular bootstrap it works, see #466 |
What version of bootstrap where you using when it didn't work? |
The setup was: but maybe we can close it as it works with the newest version of angular-bootstrap... |
Yes, the current version of xeditable requires angular-ui-bootstrap 1.0.0 or higher. In version 1.0.0 they renamed many of the directives and xeditable was updated to work with these new directive names. |
ok, make sense...thanks anyway. |
@ckosloski the demo and your plunkr have the same issue, the styles of the datepicker are wrong (looks huge etc) |
Yes, I am aware of the issue. The issue is fixed and merged, but not yet released. |
Great, is that version downloadable? |
You would have to download the source code and build it yourself. |
sure, np, is it under github? thanks |
https://github.com/vitalets/angular-xeditable |
@afgonzal you can try the latest release 0.4 |
angular-bootstrap: 0.13.4
angular: 1.4.0
angular-xeditable: 0.1.11
Having this code:
I can open a bootstrap date picker. However, when I close it and open it again it fires an exception somewhere in angular ui bootstrap (some focus function). It shows the datepicker anyway. This happens even if I set
e-on-open-focus="false"
.I have a suspicion, that bootstrap date picker is rendered twice by xeditable directive.
The text was updated successfully, but these errors were encountered: