Topic: MDBSelect - Setfocus problem
WoMe free asked 4 years ago
Expected behavior Setting the focus with JS on a MDBSelect ($(...).focus()), it should become the active control.
Actual behavior Very strange: if you set the focus with JS onto the MDBselect, THEN there is a onfocus-event (which does NOT come entering the control via mouse or keyboard), but the MDBselect is not active.
Kind regards, WoMe
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Opened
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.12.0
- Device: x64
- Browser: FF, Chrome
- OS: Win
- Provided sample code: No
- Provided link: No
Grzegorz Bujański staff commented 4 years ago
Hi.
I send you this snippet before: https://mdbootstrap.com/snippets/jquery/grzegorz-bujanski/1712853
I add focus with js here. And work fine. And focus event is triggered.
Best, Grzegorz