Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17117

Setting editbox string onTextChanged

$
0
0

@smellypotato wrote:

I want to edit the string inside editbox right after textchanged when editbox is still in focus. The following code works in 1.10
onTextChanged: function(string, editbox) {
editbox.string = “something”;
}

However in 2.2.0, the display of editbox while in focus does not change with the code, instead it changes AFTER it is blurred. The current way I am using is to blur the editbox then focus it again (with a scheduler to delay 0.1s), but I would like to know if any cleaner way to make it work like it used to.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17117


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>