diff --git a/nimforum.nimble b/nimforum.nimble index 2cf1271..392c6a0 100644 --- a/nimforum.nimble +++ b/nimforum.nimble @@ -19,7 +19,7 @@ requires "hmac#9c61ebe2fd134cf97" requires "recaptcha 1.0.2" requires "sass#649e0701fa5c" -requires "https://github.com/dom96/karax#7a884fb" +requires "karax#9882d1aec2bb" requires "webdriver#a2be578" @@ -58,4 +58,4 @@ task test, "Runs tester": exec "nimble c -y -r tests/browsertester" task fasttest, "Runs tester without recompiling backend": - exec "nimble c -r tests/browsertester" \ No newline at end of file + exec "nimble c -r tests/browsertester" diff --git a/public/karax.html b/public/karax.html index 0ed0590..3f7f41b 100644 --- a/public/karax.html +++ b/public/karax.html @@ -24,7 +24,7 @@ -
+
diff --git a/src/frontend/replybox.nim b/src/frontend/replybox.nim index 20e8114..b2e3812 100644 --- a/src/frontend/replybox.nim +++ b/src/frontend/replybox.nim @@ -88,9 +88,8 @@ when defined(js): state.shown = false proc onChange(e: Event, n: VNode, state: ReplyBox) = - # TODO: There should be a karax-way to do this. I guess I can just call - # `value` on the node? We need to document this better :) - state.text = cast[dom.TextAreaElement](n.dom).value + # TODO: Please document this better in Karax. + state.text = n.value proc renderContent*(state: ReplyBox, thread: Option[Thread], post: Option[Post]): VNode =