Join Slack
Powered by
Is there any way to auto-place the cursor at the e...
# compose
u
Utkarsh Tiwari
02/05/2021, 4:59 AM
Is there any way to auto-place the cursor at the end of the already inputted text when the user brings the focus onto the OutLinedTextField?
s
Siyamed
02/05/2021, 5:02 AM
To set the cursor position use TextFieldValue and set selection attribute to the index
🙏 1
Siyamed
02/05/2021, 5:02 AM
"When the textfield is focused" i dont know details but use a focus listener (modifier?)
u
Utkarsh Tiwari
02/05/2021, 5:03 AM
Thanks
@Siyamed
, that’s helpful!
5
Views
Open in Slack
Previous
Next