How could I indicate to p-multiselect component that the focus must be set on filter when the options panel is opened?
I've tried the following solution but seems doesn't work:
component.html
Code: Select all
<p-multiSelect #type (onPanelShow)="setFocusToFilter()"
Code: Select all
@ViewChild("type") typeDom;
setFocusToFilter() {
this.typeDom.filterInputChild.nativeElement.focus();
Many thanks,
Pilar