mardi 4 février 2020

EmberJS Octane set focus on element

I have component that contains a number of text areas and a button to add another text area. When the user clicks the button, a new text area is added. I want the focus to move to this new text area.

I saw this answer but it's for an older version and we are not using jQuery with Ember.

How do I set the focus to a specific text area using Ember glimmer objects with the new Ember Octane framework.




Aucun commentaire:

Enregistrer un commentaire