@xyan3 wrote:
Hi everybody,
I met a issue when I am using GoJS 1.7.1. I was trying to get the old and new text after text edited action is done on a TextBlock. My event listener is below:
diagram.addDiagramListener('TextEdited', (e) => {
console.log(e.parameter);
console.log(e.subject.text);
setTimeout( () => { console.log(e.subject.text); }, 100);
});The result I got for this is :
line1: 0.9.0
line2: ''
line3: 1.0.0As you can see, I expected I can get the new text information in line 2.
However, it only displayed the value in line 3 after 100 milliseconds timeout delay.Is there some internal callback function on this event? Could anybody please help me fix the GoJS issue?
Thanks and best regards,
Mark
Posts: 4
Participants: 2