Automatically focus input element after creation in purescript-halogen
问题 I'm using purescript-halogen to build a spreadsheet-like table (similar to Handsontable). If you double-click a cell, an html input element is rendered as a child of the respective table cell (and no such element is rendered for all the other cells). This works really well with halogen, except that I don't know how to automatically set the focus to the newly created input element. I tried the autofocus attribute, but this only works for the first cell that is double-clicked. The JavaScript