简体   繁体   English

单击日历按钮在手风琴内的Angular UI datepicker上不起作用

[英]Clicking calendar button not working on Angular UI datepicker inside accordion

Here is a plunker http://plnkr.co/edit/2Fs6vCciXRRc7GeUwyR2?p=preview 这是一个矮人http://plnkr.co/edit/2Fs6vCciXRRc7GeUwyR2?p=preview

Is anyone could help to advise why the calendar button is not working? 有谁可以帮助建议为什么日历按钮不起作用? However clicking the calendar textbox showing calendarpopup just fine. 但是,单击显示CalendarCaupup的日历文本框就可以了。

It seems that scope.$watch('isOpen', function(value) { ... } not working anymore when datepicker is inside accordion and using calendar button. 当datepicker在手风琴内部并使用日历按钮时,scope。$ watch('isOpen',function(value){...)似乎不再起作用。

many thanks in advance, 提前谢谢了,

Ferry 渡船

There was one issue in your plunker - as noticed by @Daniel Dawes you need to use is-open instead open , as documented: http://angular-ui.github.io/bootstrap/#/datepicker 如您所见,您的插栓中存在一个问题-@Daniel Dawes注意到,您需要使用is-open而不是open ,如记录所示: http ://angular-ui.github.io/bootstrap/#/datepicker

Then, the problem of the calendar being cut off in the last accordion is due to the Bootstrap CSS. 然后,上一手风琴中的日历被切断的问题是由于Bootstrap CSS造成的。 You can around this by using the datepicker-append-to-body="true" attribute. 您可以使用datepicker-append-to-body="true"属性来解决此问题。

Working plunk here: http://plnkr.co/edit/3d3CX25eNbUvv5U8qiV8?p=preview 在这里工作的小伙伴: http ://plnkr.co/edit/3d3CX25eNbUvv5U8qiV8? p= preview

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM