为什么我的UI Bootstrap datepicker-popup停止工作? [英] Why did my UI Bootstrap datepicker-popup stop working?
问题描述
我已更新为UI Bootstrap 0.11.0,并且我的日期选择器不再按应有的方式出现.我在此处上演示了它.很简单,我有:
I updated to UI Bootstrap 0.11.0 and my datepickers stopped appearing as they should. I have a plunker that demonstrates it at here. Very simply, I have:
<input ng-model="formData.dueDate" type="text" id="dueDate" name="dueDate"
class="form-control" datepicker-popup="MM-dd-yyyy"
datepicker-append-to-body="true">
使用UI Bootstrap 0.10.0可以正确弹出日期选择器,但不能使用最新版本.我在控制台中看不到任何错误.
The datepicker pops up correctly using UI Bootstrap 0.10.0 but not with the lastest version. I do not see any errors in the console.
这使我相信我可能在先前版本中错误地使用了日期选择器,或者他们进行了回归.我在这里做错什么了吗?
This leads me to believe I was possibly using the datepicker incorrectly in the previous version or they've had a regression. Am I doing something wrong here?
更新:
我在下面列出了答案.焦点显示和点击显示已从UI Bootstrap日期选择器中删除.
I've included the answer below. Show on focus and show on click have been removed from UI Bootstrap datepicker.
推荐答案
该功能已从UI Bootstrap中删除.参见 https://github.com/angular-ui/bootstrap/issues/2149有关更多信息.我创建了另一个Plunk,以在 http://plnkr.co/edit/ct46CK6NRb9FWdpzfQpI?p中演示该解决方法=预览.
The feature was removed from UI Bootstrap. See https://github.com/angular-ui/bootstrap/issues/2149 for more information. I have created another Plunk to demonstrate the workaround at http://plnkr.co/edit/ct46CK6NRb9FWdpzfQpI?p=preview.
这篇关于为什么我的UI Bootstrap datepicker-popup停止工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!