Hi !
What's the best way to get focus on text input ? I tried with javascript but nothing happened :
observeEvent(input$ends_wrds, {
updateTextInput(session, "user_seq",
value = paste(wrd_begin,input$ends_wrds))
HTML("<script> const input = document.getElementById('user_seq');
const end = input.value.length;
input.setSelectionRange(end, end);
input.focus(); </script>")
})
The idea is to focus on a text input after an update of this input.
Regards.