-
Notifications
You must be signed in to change notification settings - Fork 92
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
Broken functionalities when karax used with grammarly or languagetool (and possibly other extensions) #232
Comments
"Knete" is the working title for "Karax's DSL without the DOM diffing algorithm". The DSL simply produces real DOM nodes. Unfortunately this brings back all of the downsides of heavily state based programming. But it's still something I think is worthwhile to look into. |
Can reproduce the issue with something like this: import std/dom
include pkg/karax/prelude
var val: cstring
proc draw: VNode =
buildHtml(tdiv):
textarea:
proc onkeyup (ev: Event, n: VNode) =
val = n.value
p: text val
setRenderer draw, clientPostRenderCallback=proc =
document.getElementById("ROOT").appendChild(document.createElement("p")) Basically anything that adds elements as a descendant of the Karax root node |
Well you can diactivate the assertions and see if it works out... |
@pietroppeter this should be fixed now, do you want to test and close the issue? |
hi, well, I was not suffering from that bug, I opened the issue to give visibility to this problem (and apparently it worked! ;)). People that are known to me to suffer from this issue are @tsoj (opened the original issue), and, as I learned today from discord, also @ringabout. Others that could help test this out? |
It can be closed; ref nim-lang/nimforum#335 |
thanks! |
this came up in the forum today and it is only reported as an issue in nimforum (nim-lang/nimforum#303), but it is probably better also to have it here, since it is an issue to be fixed in karax.
In short:
we do still miss:
we could probably benefit from:
also, what is the "knete" approach that @Araq was referring to in the linked nimforum issue?
The text was updated successfully, but these errors were encountered: