【发布时间】:2019-03-26 02:19:36
【问题描述】:
我使用了 ng Typeahead
Open on focus 输入,我的冲突是他们正在使用bootstrap-4,但我在我的项目中使用了bootstrap 3,引导程序 3 打开焦点无法正常工作,有人知道如何在引导程序 3 上工作吗?
html
<input
id="typeahead-focus"
type="text"
class="form-control"
[(ngModel)]="model"
[ngbTypeahead]="search"
(focus)="focus$.next($event.target.value)"
(click)="click$.next($event.target.value)"
#instance="ngbTypeahead"
/>
【问题讨论】:
-
stackblitz 正在工作
-
@Chellappan stackblitz 工作正常,但 css 不工作,请检查一下
-
我认为 ng-bootstrap 只支持 bootstrap4 检查这个github.com/ng-bootstrap/ng-bootstrap/issues/998
标签: css angular twitter-bootstrap-3 ng-bootstrap typehead