javascript - IE下拉菜单在点击时消失,需要鼠标向下
问题描述
我在 Chrome 或 Safari 中没有这个问题,这似乎是 IE (11) 特有的兼容性问题。当我单击下拉栏时,我的下拉列表会在消失之前扩展几分之一秒。为了让它持久,我需要按住/鼠标按下。选择选项也是一个问题。这是下拉列表的相关JS代码。
<select class="ng-valid" id="selection-timeframe.selector" aria-invalid="false"
ng-click="$event.stopPropagation()"
ng-model="layer.dropdown.selected"
ng-options="timeframe.name for timeframe in layer.dropdown.timeframes"
ng-change="layer.dropdown.selectLayer(layer.dropdown)">
...(options)...
</select>
任何见解将不胜感激。
解决方案
推荐阅读
- r - 使用R获取列表中前五个连续日期的第一个日期
- asynchronous - 如何让 CUDA 在内核启动后返回控制权?
- node.js - 您如何可靠地从服务器提供图像?
- javascript - 在 typeorm 中使用存储库时我们如何保存关系
- angular - 错误错误:致命:对不起,太多的客户已经 ApolloError 在角度
- c# - Automapper 仅在映射对象列表时覆盖不在源中的目标值
- python - 如何绘制测量矩阵
- universal-binary - 如何在 qbs 中安装通用二进制工件?
- swift - 如何将带有'&'的字典参数传递给Swift中的Objective-C方法
- mysql - com_insert、innodb_rows_insert 和 handler_write 之间有什么关系?