Phoenix LiveView callbacks - to put text input focus on the selected input field?

I have created a list with items inn LiveView which when an item is clicked is rerendered as an input field. Is there a callback or similar that I can hook into to also be able to put text input focus on the selected input field?