Set focus on mdb-select programmatically


Topic: Set focus on mdb-select programmatically

Saniv asked 7 years ago

Hello, I am using Angular and I'm having a problem to set focus on mdb-select. Can i set it programmatically ? I am opening it with ViewChild component as the example below : <mdb-select [options]="options" #select></mdb-select> @ViewChild('select') select: SelectComponent; openSelect(){     this.select.open();     this.select.focus(); } It opens as i expected but I am not able to use arrows or other keys to navigate on mdb-select. Any examples will be helpfull :)
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No