Template Repeater vs Template Canvas

A text box on my template has the property change script below. When the value of the text box changes, it appears as if all the template instances reload. Am I doing something wrong or is this the same bug in Template canvas blinking/refreshing/loading

if event.propertyName == 'text':

	canvas = system.gui.getParentWindow(event).getRootContainer().getComponent('Template Canvas')

	params = system.util.jsonDecode(canvas.templates.getValueAt(event.source.parent.index, 'parameters'))
	
	params['text'] = event.newValue
		
	canvas.templates = system.dataset.setValue(canvas.templates, event.source.parent.index, 'parameters', system.util.jsonEncode(params))