如何使用Bootstrap NgbTypeahead中的向上和向下箭头键滚动

时间:2018-07-30 07:35:05

标签: css angular bootstrap-4 bootstrap-typeahead

我正在使用Bootstrap NgbTypeahead。(https://ng-bootstrap.github.io/#/components/typeahead/examples

使用键箭头,我可以导航到下一个项目,并使用CSS将滚动条添加到该列表中。

.dropdown-menu.show {
    overflow: auto;
}

我无法使用箭头键向上/向下滚动,但是焦点移到了项目上。我想在按下向上/向下键时滚动列表。

有什么办法可以帮助我吗?

0 个答案:

没有答案
相关问题