-
-
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
editable-bsdate does not work with the latest ui.bootstrap #164
Comments
It seems that it also works with ui.bootstrap |
ok, I've just figured out a workaound for this problem http://plnkr.co/edit/Y4ilZ4rITYnjAyq2xAUa?p=preview |
I experienced the same issue. Your fix works good. Thank you. |
Another side effect I see as a result of moving from 0.10.0 to 0.11.0 is that the popup default to today, and not the date being edited. |
I see here (angular-ui/bootstrap#2149) that many UI Bootstrap 0.11.0 users report this problem. Turns out that it was a deliberate feature-add by the authors to remove the "open on focus" behaviour (angular-ui/bootstrap#1922 (comment)). The workaround above (thanks @lucassus) causes all datepickers on my page to open at once (as you would expect when I bind them all to the same scope variable :) I tried modifying xeditable.js line 69 (the and it's nearly there, but still glitchy. |
+1 |
1 similar comment
+1 |
@lucassus : Hey , good fix, however, I am trying to get this(AngularUI datepicker) working on the editable form http://vitalets.github.io/angular-xeditable/#editable-form |
@lucassus solution still works with angular 1.3.x, ui-bootstrap 0.11.x, and angular-xeditable 0.1.8 |
@lucassus : Here is the jsFiddle of the above mentioned stack and I'm not sure why it isnt working with the solution : http://jsfiddle.net/NfPcH/6518/ |
Replace line no:1552 with this code in angular bootstrap UI 0.12.0: var keydown = function(evt, noApply) {
Now, datepicker works with click on input element. |
Thanks @lucassus. |
+1 -- the workaround does not seem to be working for me either. |
Workaround does not work for me either |
same issue for me, using angular 1.3.15, ui-bootstrap 0.13.0, and angular-xeditable 0.1.8 <span editable-bsdate="defannoimp.chiudi" e-name="chiudi" e-form="rowform" e-datepicker-popup="dd-MM-yyyy" onbeforesave="checkChiudi($data, defannoimp.anno)">
{{ defannoimp.chiudi | date:"dd/MM/yyyy" }}
</span> when edit row and click on field, calendar is not shown |
ilbazro... lucassus fixed it for me! |
Hello guys, Versions: |
@asakalou Here is the working code. http://plnkr.co/edit/pBnxWiqrLwOG1UNWyTJM?p=preview I have replaced your angular bootstrap UI file with modified code. |
@ganapativs thanks for the sample, got this working for me in |
This's my solution with editalbe 0.1.8 angular 1.4.0 ui-bootstrap 0.12 after dig deep into ui-bootstrap document: Note: e-class = "form-control" is optional. I add because xeditable is not include when invoked. |
onOpenFocus attribute added in angular-ui/bootstrap@4a69d00 of Angular-ui I believe this can help with vitalets#164
HTML5 date type is only supported by Chrome. Use angular-xeditable + ui-bootstrap ngClick workaround[1], plus a fork that makes the input button optional[2] as we have space constraints. Closes eHealthAfrica#300. [1]: vitalets/angular-xeditable#164 (comment) [2]: vitalets/angular-xeditable#388
HTML5 date type is only supported by Chrome. Use angular-xeditable + ui-bootstrap ngClick workaround[1], plus a fork that makes the input button optional[2] as we have space constraints. Closes eHealthAfrica#300. [1]: vitalets/angular-xeditable#164 (comment) [2]: vitalets/angular-xeditable#388
HTML5 date type is only supported by Chrome. Use angular-xeditable + ui-bootstrap ngClick workaround[1], plus a fork that makes the input button optional[2] as we have space constraints. Closes eHealthAfrica#300. [1]: vitalets/angular-xeditable#164 (comment) [2]: vitalets/angular-xeditable#388
@seksitha Thanks,It works :) |
It is problem with X-editable js. changed x-editable.js to angular-xeditable - 0.1.9 |
For some reason the datepicker popup is not beeing opened. Here is demo http://jsfiddle.net/lucassus/j6486p8q/
I forked this jsfiddle from http://jsfiddle.net/NfPcH/23/ which I found on the documentaion page and I upgraded AngularJS from
1.0.8
to1.2.22
and ui.boostrap from0.6.0
to0.11.0
.The text was updated successfully, but these errors were encountered: