[英]How to add autofocus for ng-select which is there inside bootstrap modal
我在模態中使用 ng-select。 我想為 ng-select 添加自動對焦,我可以為模態內部的輸入字段添加焦點,但是如果我為 ng-select 嘗試相同的操作,它就不起作用。 請讓我知道我們如何為 ng select 添加焦點。
通過這種方式
this.ngSelectInput.filterInput.nativeElement.focus();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.