Topic: Disable select open on enter keypress

aztecadmin priority asked 9 months ago


I have an application being used on a mobile device and upon hitting enter they want to tab to the next input. That is easy enough with some vanilla js, however I am looking for a way to disable the select open when they do hit the enter key.


Kamila Pieńkowska staff answered 9 months ago


You can listen to open.mdb.select event and if it was triggered by Enter use preventDefault().



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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.4.1
  • Device: PC
  • Browser: Chrome
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: No