How to autofocus ngx-mat-intl-tel-input search box instead of input field?

727 views Asked by At

I am using NgxMatIntlTelInput library and I have created component like this:

<ngx-mat-intl-tel-input
   [enablePlaceholder]="true"
   [enableSearch]="true"
   placeholder="Telephone"
   name="phone">
</ngx-mat-intl-tel-input>

At the moment when user clicks on this field, the cursor / focus will go to the input field. But I would like to autofocus Search box instead.

Any idea how to do that?

EDIT: Added example.

0

There are 0 answers