我使用uib-数据报警器-弹出与uib-弹出触发“鼠标中心”。当我鼠标移动到datepicker元素时,弹出器就会显示得很好。但是,如果我选择了一个日期,则在我再次单击datepicker元素之前,弹出窗口仍然是可见的。
<p uib-popover="I won't go away" popover-trigger="'mouseenter'">
<input uib-datepicker-popup is-open="popup.opened" datepicker-options="dateOptions" ng-model="dt" close-text="Close" type="text"/>
<span class="input-group-btn">
<button type="button" ng-click="open()"><i class="icon"></i></button>
</span>
</p>我已经为此做了一个票证,但是由于我不确定它是一个bug,还是我只是缺少了一些配置更改,所以我也在这里询问。
我怎么才能让弹夹又消失呢?
发布于 2017-04-15 09:49:45
虽然它可能是一个bug,但是您仍然可以通过在输入上设置弹出而不是日历按钮来解决这个问题,如下所示
<input
type="text"
uib-popover="I won't go away"
popover-trigger="'mouseenter'"
popup-placement="bottom-right"
class="form-control"
uib-datepicker-popup
ng-model="dt"
is-open="popup2.opened"
datepicker-options="dateOptions"
ng-required="true"
close-text="Close" />https://stackoverflow.com/questions/43356708
复制相似问题