Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verbitam content is appended every time it changes #273

Open
hamidb80 opened this issue Oct 21, 2023 · 1 comment
Open

verbitam content is appended every time it changes #273

hamidb80 opened this issue Oct 21, 2023 · 1 comment

Comments

@hamidb80
Copy link

hamidb80 commented Oct 21, 2023

include karax/prelude

var 
    text = "wow"
    counter = 1

proc createDom(): VNode =
  result = buildHtml(tdiv):
    verbatim text

    proc onclick = 
        text &= $counter
        inc counter
    
setRenderer createDom

What is Expected:

wow
wow1
wow12
wow123
wow1234
...

What is happening

wow
wowwow1
wowwow1wow12
wowwow1wow12wow123wow1234

I think #270 caused the problem, because 1.3.0 works fine but 1.3.1 does not

@geotre
Copy link
Collaborator

geotre commented Oct 21, 2023

I've reverted the change for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants