This is such a weird bug. It only happens on a real iOS device, not the simulator.
When I click into a blank MobileTextField to edit it, the cursor appears to the left as expected. A small circular “X” icon appears on the right.
I can’t type into the field until I press the X. Trying to type does nothing. Once I press the X, then I can type.
It seems to only happen if the MobileTextField starts off blank.
My testers pointed this out to me first since it’s only on real devices. Based on when their feedback began, I feel like it coincided with Xojo 2026 release but I’m not positive.
Has anyone else experienced this? Any workarounds?
Public Sub removeClearButton(tf as MobileTextField, mode as integer)
Declare Function sel_registerName Lib “/usr/lib/libobjc.A.dylib” (name As CString) As Ptr
Declare Sub objc_msgSend_setInt Lib “/usr/lib/libobjc.A.dylib” Alias “objc_msgSend” (obj As Ptr, sel As Ptr, value As Integer)
Var h As Ptr = tf.Handle
If h = Nil Then Return
Var selSetClear As Ptr = sel_registerName(“setClearButtonMode:”)
objc_msgSend_setInt(h, selSetClear, mode)
End Sub
Then on focusreceived, remove it and put it back right away:
I guess I’m going to have to subclass MobileTextField, make this change so it applies to every control for the subclass, and rework every MobileTextField control in my app…. ugh.
Unless anyone has some insight into why this is happening?
What code do you have that sets the text in this field and in what events? For instance, changing the text in the textchanged event can cause this issue
In case anyone is curious: this must be something specific to my app.
I tried adding iOSDesignExtensions to my test app, and I tried other things like putting the screen into a tab bar to replicate the app with this issue, and even copied in the exact screen to the test app. None of that triggered it in the test app.