UI-Bootstrap 在模态框上提前输入
UI-Bootstrap Typeahead on a Modal
我想在模态对话框上放置 Typeahead 指令。问题是,当 typeahead 显示它的可能匹配列表时,它位于 modal-footer div 后面。我玩了 append-to-body 然后整个列表都在模态对话框后面。也玩过 append-to 没有运气。有什么建议吗?
解决方案是将此属性添加到 html:
typeahead-append-to-body="true"
并在 css 文件中:
.dropdown-menu {
z-index:9999;
}
现在 Typeahead 在模态对话框上正确显示。
我想在模态对话框上放置 Typeahead 指令。问题是,当 typeahead 显示它的可能匹配列表时,它位于 modal-footer div 后面。我玩了 append-to-body 然后整个列表都在模态对话框后面。也玩过 append-to 没有运气。有什么建议吗?
解决方案是将此属性添加到 html:
typeahead-append-to-body="true"
并在 css 文件中:
.dropdown-menu {
z-index:9999;
}
现在 Typeahead 在模态对话框上正确显示。