- My goal:
Allow users to edit pre-filled text in a TextInput field, including clicking in the middle of the text to place the cursor or selecting the full pre-filled text to delete it n one keystroke.
- Issue:
Even after prepopulating the field using form.setData(), the user can’t click inside the input field to place the cursor in the middle of the text. The cursor only lands at the start or end, and movement is only possible with arrow keys.
-
Steps I've taken to troubleshoot:
Used TextInput, not TextArea
Set Form data key correctly (e.g., kbo_number)
Left Default value empty
(and using form.setData() )
Used form1.setData({...}) to populate form
Applied global CSS:
input, textarea {
user-select: text !important;
-webkit-user-select: text !important;
-moz-user-select: text !important;
}Tried JS focus + setSelectionRange() manually
Confirmed it also happens with typed (not just prefilled) default input
Checked component tree for overlap/layers — none found
Confirmed form1.data updates as expected
-
Additional info:
Hosting: Retool Cloud
Browser: Firefox (latest)
Component name: textInput3