Focus doesn't seem to be working

Wappler: 4.0.2
OS: MacOS
Server: PHP

I have a modal containing a form and I want the first field (a normal input field) to have the focus when the modal is shown but I can’t get it to work. This is the code for the modal:

<div class="modal fade" id="modalAddEngineer" is="dmx-bs5-modal" tabindex="-1" nocloseonclick="true" dmx-on:hide-bs-modal="serverconnectformAddEngineer.reset()" dmx-on:show-bs-modal="serverconnectformAddEngineer.inp_engineerFirstName.focus()">

Is it a bug or am I going about it the wrong way?

Community Page
Last updated: