How do you programmatically move the caret of a Flex TextArea to the end?

前端 未结 6 1240
眼角桃花
眼角桃花 2021-01-12 15:25

I\'m trying to move the caret in a Flex TextArea to the end after appending some text from my code. I\'ve looked through the reference documentation for TextArea and its und

6条回答
  •  伪装坚强ぢ
    2021-01-12 16:02

    Try this

    textArea.selectionBeginIndex = textArea.length;
    textArea.selectionEndIndex = textArea.length;
    

提交回复
热议问题