another attempt to fix bug #31

This commit is contained in:
Andreas Rumpf 2017-06-23 11:09:22 +02:00
commit cd74cd9d4e
2 changed files with 26 additions and 18 deletions

View file

@ -39,9 +39,8 @@ proc render(x: VComponent): VNode =
kout cstring"rendering ", self.myid
inc renderId
result = buildHtml(tdiv(style=style, key=renderId)):
input(style=inputStyle, value=self.value, onblur=flip, onfocus=flip,
key=renderId)
result = buildHtml(tdiv(style=style)):
input(style=inputStyle, value=self.value, onblur=flip, onfocus=flip)
var gid = 0
proc newTextInput*(style: VStyle = VStyle(); value: cstring = cstring""): TextInput =