Having an autofocus in a nuxeo-data-table-form

Hello, Either the following piece of code:

  <nuxeo-data-table ... orderable="true" editable="true">
      <nuxeo-data-table-column ...>
          <nuxeo-input value="{{item}}" type="text"></nuxeo-input>

My goal is to have the focus on “nuxeo-input” while trying to add an entry to the table. I tried adding the “autofocus” attribute but it doesn't work. And I also want to know if there is a tip to validate “nuxeo-data-table-form” with the enter key.

Anyone know these tips please?

1 votes

1 answers



As a first solution, I use javascript listeners to trigger events.

0 votes