gpt4 book ai didi

angularjs - 无法使用键盘以特定高度导航 angular-ui bootstrap typeahead

转载 作者:行者123 更新时间:2023-12-04 14:41:18 25 4
gpt4 key购买 nike

所以,我认为这比 angular-ui 更像是一个 Bootstrap 问题,但我为此花了 2 个晚上,但我找不到隧道尽头的灯。

这是 plunkr: http://plnkr.co/edit/n39LVjbHQzmcwGkk2dR1?p=preview

搜索“x”,然后尝试使用箭头键向下搜索。项目将被选中,但它们不会获得焦点。

有什么想法吗?

最佳答案

这是一个解决方案。我向 typeahead li 元素 shouldFocus 添加了另一个指令,用于监视其事件值的变化。当它这样做时,它会对该元素调用 scrollIntoView

我想这被认为是一种 hack,但如果 typeahead 允许动态模板,从标记中设置,那么它将是一个有效的修复。

http://plnkr.co/edit/vzLHFqkHPUFCaaosVt5w?p=preview

关于angularjs - 无法使用键盘以特定高度导航 angular-ui bootstrap typeahead,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21696407/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com