You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setFocus calls selectRange(0, this._text.length), which selects all the text. This causes a problem on iOS especially when multiline = false because of the AIR bug. The TextInput will select all the text very quickly and then change if you call selectRange() right after setFocus(). However, if you place the cursor at the end of the text and then call selectRange it gives it a much cleaner look in my option.
Maybe a having an argument to set the range so you don't have to call selectRange? or change it to this.selectRange(this._text.length, -1); so it places the cursor at the end of the text instead of selecting all the text?
What do you think?
The text was updated successfully, but these errors were encountered:
setFocus calls selectRange(0, this._text.length), which selects all the text. This causes a problem on iOS especially when multiline = false because of the AIR bug. The TextInput will select all the text very quickly and then change if you call selectRange() right after setFocus(). However, if you place the cursor at the end of the text and then call selectRange it gives it a much cleaner look in my option.
Maybe a having an argument to set the range so you don't have to call selectRange? or change it to this.selectRange(this._text.length, -1); so it places the cursor at the end of the text instead of selecting all the text?
What do you think?
The text was updated successfully, but these errors were encountered: