diff --git a/tests/blur.nim b/tests/blur.nim index 02a0de2..f40cb97 100644 --- a/tests/blur.nim +++ b/tests/blur.nim @@ -58,8 +58,12 @@ proc renderComb(self: VComponent): VNode = self.a self.b +proc changed(self: VComponent): bool = + let self = Combined(self) + result = self.a.changedImpl(self.a) or self.b.changedImpl(self.b) + proc newCombined*(style: VStyle = VStyle()): Combined = - result = newComponent(Combined, renderComb) + result = newComponent(Combined, renderComb, changed=changed) result.a = newTextInput(style, "AAA") result.b = newTextInput(style, "BBB")