Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
[ISSUE] TextField (input) issue on IOS
On ios i was having a problem that any letter I press the selection of texfield select all and make impossible to use the input.
_inputField = new TextField();
_inputField.type = "input";
_inputField.autoSize = "none";
_inputField.multiline = false;
_inputField.wordWrap = false;
_inputField.maxChars = 100;
_inputField.x = _loc1_.x;
_inputField.y = _loc1_.y;
_inputField.height = 20;
addChild(_inputField);
_inputField.addEventListener("change", __onInputFieldChange);
private function __onInputFieldChange(param1:Event):void
{
if (_inputField.text)
{
_inputField.text = _inputField.text.replace(File.lineEnding, "");
}
}
I think the problem it's on the assign of text, removing the event handler __onInputFieldChange the problem stop.
Hi
We're struggling to reproduce this as described - just to clarify, we are seeing the selection of a word in the text field based on the iOS settings for auto-complete and text predictions. But with that code, when we type, we don't see the whole text field being selected.
Can we check the iOS version and handset used here? and AIR SDK version(s) presumably are the latest? Which sort of build, does it fail with ipa-debug etc?
thanks
Hello, I started working with IOS again and this it's still present. SDK: 51.1.1.5. iOS 17.6.1 (21G93)
With ipa-debug, I can't properly test with ipa-debug-interpreter as this mode cause others issues that I wasn't even able to use the app, I will open other issue to track the problem related to ipa-debug-interpreter. But for now the TextField selection issue it's still present. I can't type anything on TextField if the field has a event listener that replace the text (mostly used to create restrictions on the text that can be typed)